How to Build a Farm Fence Yourself With Just a Few Tools

A simple wooden fence can keep your livestock right where you want them

Horse ranch with pasture
Photo: YinYang / E+ / Getty Images
Horse ranch with pasture
Photo: YinYang / E+ / Getty Images
SKILL LEVEL
Challenging
COMPLETION TIME
3 days
COST
$1,000+
Get quotes from up to 3 pros!
Enter a zip below and get matched to top-rated pros near you.
Geo Icon
What you'll need:
TOOLS
  • Mallet
  • Nylon line
  • Post hole digger
  • Spare lumber planks
  • Clamps
SUPPLIES
  • Wooden stakes
  • Gravel
  • Pressure-treated wooden fence posts
  • Quick-setting concrete
  • Water

If you keep large animals on your property, knowing how to build a farm fence can give you a stylish corral to ensure they stay safe. While it's a straightforward job that requires few tools, it's also highly labor-intensive and uses lots of costly lumber. Many save time by hiring a pro, but if you'd rather roll up your sleeves and tackle livestock fencing yourself, this guide can help.

Prepping to Build a Farm Fence

Before you build a wooden cattle fence, you'll need to get your property ready. To avoid overstepping boundaries, hire a local land surveyor. They'll identify your property lines and provide documentation. You should also call your local utility company to mark the location of any buried pipes or gas lines that you'll need to avoid digging into.

Determine the Frost Line

You'll need to bury fence posts below the frost line, or the level at which groundwater freezes. Otherwise, posts can get moved around by the expansion of the soil as it freezes each winter. The frost line differs by location, so check your local building codes for information. Those living in colder northern states will have to dig the deepest post holes to get below the frost line.

  1. Mark the Perimeter

    Pound wooden stakes into the ground with your mallet to mark the location of each corner or other spot where the fence will change directions. You should also mark the spots where your gate posts should be. Stretch a nylon line to connect each stake. This line will be your guide as you place posts.

  2. Dig Post Holes

    Man digging a hole
    Photo: krblokhin / iStock / Getty Images Plus / Getty Images

    Use a post hole digger to dig a hole at least 10 inches below the frost line. The width of the hole should be three times the width of your posts. Continue to dig identical post holes, spacing them seven and a half feet apart. You should also dig a hole at each corner.

    Fill the bottom of each hole with about four inches of gravel. This will allow proper drainage for posts and help prevent moisture damage.

  3. Place and Brace Posts

    Set your first post in one of your holes. Place two planks perpendicular to one another and have them stand diagonally against the post. Clamp the planks onto the post to create a brace. Use a level to ensure the post is horizontally level and vertically plumb, adjusting the brace accordingly.

  4. Set Posts

    Man installing a wooden fence
    Photo: Grandbrothers / Adobe Stock

    Splash a bit of water onto the base of the post and against the sides of the hole. Next, backfill the hole with quick-setting concrete according to the instructions on the bag. Some types recommend adding water to the hole before pouring in the dry concrete mix, while others recommend the opposite.

    As the concrete cures, repeat steps three and four for all remaining posts, removing braces after about 20 minutes to reuse on subsequent posts.

  5. Set Fence Height

    All your concrete should be cured about 48 hours after setting your final post. Cut each corner post to your desired fence height and string your nylon line between posts about an inch below the top. Mark where the line hits each post. This is where your top rail will intersect.

  6. Attach Rails

    Field with wildflowers
    Photo: marcoventuriniautieri / E+ / Getty Images

    Use a power drill and galvanized screws to secure rails about an inch from the end on the inside of the posts. Placing rails on the inside will strengthen them by bracing them against the posts if pushed on by any animals you're containing. Space rails evenly from top to bottom and leave at least 4 inches of clearance at the bottom. 

    For additional strength, stagger the rails so they don't begin and end on the same post as the rails above and below. For example, if you're building a three-rail fence with 16-foot rails, start the top and bottom rows on one post and start the middle row on the next post down.

    Continue until all rails are securely attached.

  7. Secure the Gate Hardware

    Determine which way you’d like each gate to swing and which side the gate latches will be on. Ensure that the height you’re setting your gate at allows for a few inches of ground clearance to allow the gate to settle into place over time and still swing freely.

    With your gate height chosen, measure and mark where to drill holes in the fence post for the gate hardware. Use a drill bit that’s slightly smaller than your screws so the grooves catch tightly. Starting at the bottom, secure your gate hardware to the post with screws.

  8. Hang the Gate

    Set the bottom of the gate on the bottom screw. Lift the gate and slip the gate cylinder up and onto the hardware, tightening the bolts once you have it at the correct height. Check to see if the gate is level. If it’s not, tighten or loosen the hardware screws to adjust it until it is. Attach the gate latches and test to ensure they function properly and the gate swings freely.

    With that, you’re done and ready to use your farm fence!

DIY vs. Hiring a Pro 

The cost to build farm fencing yourself varies depending on the size of the fence and what tools you already own. Expect to save up to $500 on labor and spend at least $1,000 to DIY.

These relatively small potential savings may not be worthwhile, considering that mistakes while building a farm fence can lead to high future maintenance costs and an ineffective fence that won't contain your animals. Avoid escaped cows, pigs, or horses by hiring a fence company near you to complete your installation for an average cost of $2,000.

Frequently Asked Questions

The least expensive farm fence to install is actually a wire fence rather than a cow fence made of lumber. A hog wire fence can be strong, long-lasting, and relatively easy to repair. A woven wire fence also requires less lumber than a wooden fence, reducing the overall cost of your project. However, wire fences tend not to be as aesthetically pleasing as wood fences.

The best wood for a farm fence is pressure-treated wood that will stand up to various weather conditions, animal contact, and moisture. Farm fences need to resist rot and damage, so choose a species such as cedar or redwood. The natural oils in these woods give them decay resistance, which also makes them ideal for other fence types, such as a wooden snow fence.

Need professional help with your project?
Get quotes from top-rated pros.
The homeowners guide to fencing services
From average costs to expert advice, get all the answers you need to get your job done.
Garden with hog wire fence
Nov 9, 2023
Nov 9, 2023
This guide breaks down hog wire fence cost factors to help you budget for a rustic, trendy fence style at an affordable price.
Swimming Pool Fence
Feb 7, 2024
Feb 7, 2024
Pool fence costs vary depending on the type of fencing and the size of your pool. This guide will help you figure out the true cost of pool fence installation, along with what you should consider when adding a fence around your pool.
Female friends playing with bubbles in front of a corrugated fence
Feb 9, 2024
Feb 9, 2024
A corrugated metal fence is a great way to give your yard a sleek, modern look while also saving a little bit of green in the process. This guide will break down the costs of building this type of fence and what you should consider before doing so.
danger sign on electric fence
Apr 9, 2024
Apr 9, 2024
Learn how to read an electric fence wiring diagram—knowing the parts of an electric fence can give you a better understanding of how it works.
A child sits on a fence
Feb 6, 2024
Feb 6, 2024
If you’re struggling to choose the right type of fence post for your yard, keep reading for a breakdown of fence post foam vs. concrete options.
Black Chain Link Fence
Jul 25, 2024
Jul 25, 2024
Black fencing adds some elegance to your property while maintaining security. Use this black chain-link fence cost guide to get an estimate for your fencing.
Share project details to get started.