The material you use for your fence will affect the overall price. For example, a chain link fence costs about $8 per foot, while a vinyl fence costs about $20 per foot, according to Service Magic. If you're installing a wooden fence, expect to pay around $9 per foot. Wrought iron fences cost as much as $30 per foot.
The height of the fence and the number of gates also will affect the overall cost.
The more materials needed to complete the project, the more you'll spend. A 300-foot wood ranch fence will cost around $5,500, while the same fence with an acre of material costs upwards of $13,500, according to Cost Helper.
Picking up the building materials and installing the fence yourself saves you between 40 and 50 percent, according to Cost Helper.