The average cost to install a fence is between $1,760 and $4,500. These costs are what an average homeowner spends, but you might spend more or less depending on several factors. For a smaller DIY project, you might get away with spending as little as $430, or for a much larger project (like fencing for a 5-acre yard), you can spend in excess of $43,000.
Besides the size of your yard, other factors like your fence material, fence height, site prep, and additional fence features like gates all impact the overall cost. Additionally, the high cost of raw materials and manufacturing can all make the overall price tag higher.