A properly built welded farm gate uses 2x2 or 2x3-inch square tubing for the perimeter frame, diagonal bracing from the bottom hinge corner to the top latch corner, and hinges rated for the gate’s weight. MIG or stick welding handles the job. The structural key is the diagonal brace. Without it, every gate sags at the latch end within the first season.

Gate building and fence post work are basic fabrication projects that most farm welders handle regularly. The joints are simple fillet welds, the material is mild steel, and the tolerances are generous. What separates a gate that lasts 20 years from one that falls apart in 3 is joint preparation, complete welds (all the way around every tube), and proper surface treatment.

Gate Frame Design

Basic Layout

A farm gate is a rectangular frame with internal bracing. Standard dimensions run 4-6 feet tall and 8-20 feet wide, depending on the opening.

Gate WidthFrame TubingDiagonal BraceFill MaterialApproximate Weight
8-10 ft2x2" x 3/16" wall2x2" x 3/16"1" sq tube or welded wire80-120 lbs
12-14 ft2x2" x 3/16" wall2x2" x 3/16"1" sq tube or welded wire120-180 lbs
16-20 ft2x3" x 3/16" wall2x3" x 3/16"1.5" sq tube or panel180-280 lbs

Diagonal Bracing

The diagonal brace runs from the bottom of the hinge side to the top of the latch side. This creates a triangle that resists the racking force of gravity pulling the latch end down.

Single diagonal: Adequate for gates under 12 feet. Run the brace from the bottom hinge corner to the top latch corner. This brace works in tension under normal loading.

X-brace: Two diagonals crossing in the center. Required for gates over 14 feet and recommended for any gate that handles livestock traffic. The X-brace resists racking in both directions, which matters when cattle push against the gate from either side.

Where the diagonals connect: The brace tubes run corner-to-corner inside the perimeter frame. They butt into the inside face of the frame tubing at each corner. Fillet weld all around the brace at each end.

Horizontal Intermediates

One or two horizontal tubes between the top and bottom rails add stiffness and provide attachment points for fill material (pickets, mesh, or panels). Space them evenly across the gate height.

Material and Cutting

Tubing

Use A500 Grade B rectangular or square tubing for structural members. Standard mild steel tubing from a metal supplier works fine. Buy enough extra material for test welds and mistakes. Nothing worse than being one tube short on a Saturday.

Cutting

A chop saw with an abrasive blade cuts square tubing quickly and accurately. A band saw produces cleaner cuts with less heat. A cutoff wheel on a grinder works in the field but produces less accurate cuts.

Cut square. Frame tubes meet at 90-degree corners, and the diagonals meet the frame at the angle determined by the gate dimensions. Measure the diagonal length directly on the partially assembled frame (tack the perimeter first, then measure the diagonal from corner to corner). Cut the brace to fit.

Coping vs. Butting

For a gate frame, butt joints are standard. Cut the vertical stiles full height, then cut the horizontal rails to fit between them. The rails butt into the inside face of the stiles. This is simpler than coping round tube and produces clean, strong joints on square tubing.

Welding the Gate Frame

Process Selection

MIG (ER70S-6, 0.035", 75/25 gas): The fastest option for shop fabrication. Settings around 19-21V, 280-340 IPM for 3/16-inch wall tubing.

Stick (E6011 or E7018, 1/8"): Works anywhere, no gas bottle or wire feeder needed. E6011 at 90-110A handles 3/16-inch wall tubing in all positions. Use E7018 at 110-130A for stronger joints if the metal is clean.

Flux-core (E71T-11, 0.035"): Good for outdoor builds with no wind protection. Produces solid welds without shielding gas.

Assembly Sequence

  1. Cut all pieces. Lay them out on a flat surface and verify dimensions. If your shop floor isn’t flat, build a simple welding table from angle iron and plate.
  2. Assemble the rectangle. Tack the four corners with the stiles (vertical members) on the outside and the rails (horizontal members) between them. Check for square by measuring the diagonals. If both diagonals are equal (within 1/8 inch), the frame is square.
  3. Tack the horizontal intermediates. Position them inside the rectangle and tack in place.
  4. Tack the diagonal brace(s). Measure and cut to fit inside the frame. Tack at each end.
  5. Re-check square. Tacking can pull things slightly. Adjust now before final welding.
  6. Weld out. Run fillet welds on all joints. Weld both sides of every tube-to-tube junction (outside face and the two side faces accessible without flipping). Flip the gate and weld the back side.

Weld Every Joint Completely

Every tube intersection needs fillet welds on all accessible faces. A tube butted into the inside of another tube has three weldable faces (left side, right side, and the face touching the outer tube). Weld all three. A tube laying on top of another has two long sides to weld. Weld both.

Partial welds on gate frames crack within the first year from vibration and thermal cycling. A gate swings thousands of times per year and flexes in the wind. Every unwelded face is a potential crack starter.

Hinge Welding

Hinge Types

Weld-on barrel hinges: The most common farm gate hinge. Two barrel halves weld to the gate and the post respectively, with a pin through the barrels. Simple, strong, and easy to install.

Strap hinges: A flat strap bolted or welded to the gate frame, pivoting on a pin welded to the post. Good for lighter gates and situations where you want to remove the gate easily.

Adjustable hinges: Bolt-on hinges with vertical and lateral adjustment. Useful when post alignment isn’t perfect (which is most of the time on farm gates).

Welding Barrel Hinges

  1. Align the gate in the opening with the hinge barrels engaged on the pin.
  2. Shim the gate to the correct height and level using blocks or jacks.
  3. Tack the gate-side barrel to the gate frame. Tack the post-side barrel to the post.
  4. Swing the gate to verify operation. Adjust before final welding if it binds.
  5. Weld the barrels fully. Run a fillet weld around the full circumference where the barrel meets the tube.

Hinge Placement

Two hinges minimum. Position the top hinge 6-8 inches from the top of the gate and the bottom hinge 6-8 inches from the bottom. For heavy gates (over 200 lbs), add a third hinge at the midpoint.

Hinge-to-post weld: If the post is round pipe, the barrel meets it on a curved surface. Grind the barrel or weld a flat pad to the post first, then weld the barrel to the pad. A flat-to-flat joint is stronger than a round-to-round joint with point contact.

Fence Post Repair

Broken Post at Ground Level

The most common fence post failure: a steel post rusts through at ground level where moisture concentrates. Two repair approaches:

Sleeve repair: Slide a larger-diameter pipe over the broken post, overlapping the break by 12 inches on each side. Weld the sleeve to both the upper and lower sections of the post. This is the fastest field fix.

Post stub replacement: Cut the old post off below ground level. Drive a new post stub next to the hole, or pour a concrete footer and set a new section. Weld a connector sleeve between the new stub and the existing upper post.

Reinforcing a Leaning Post

A gate post that leans puts stress on the hinges and makes the gate bind. Options:

  • Weld a diagonal brace from the post to a buried anchor or horizontal kicker at ground level
  • Weld a support strut to an adjacent fence post
  • Pour concrete around the base after straightening with a come-along

Welding in the Field

Field welding on fence posts means working outdoors, often in wind and with limited power. Key considerations:

  • Wind protection for MIG: Shield the weld zone with a piece of sheet metal or plywood. Wind over 5-8 mph blows shielding gas away and causes porosity.
  • Stick welds better in wind because the flux coating provides its own gas shield. E6011 is the default rod for outdoor fence work.
  • Ground clamp placement: Clean the post surface where you attach the ground clamp. Rust and galvanized coating create a poor electrical connection.
  • Generator or engine-drive: An engine-driven welder/generator is the standard for field fence work. A gas-powered generator running an inverter welder is a lighter alternative.

Galvanized Steel Considerations

Many fence components are galvanized (zinc-coated) for corrosion resistance. Welding galvanized steel requires specific precautions.

Health Hazard

Zinc fume from welding galvanized steel causes metal fume fever. Symptoms appear 4-12 hours after exposure: fever, chills, nausea, muscle aches, headache. It resolves in 24-48 hours but is genuinely miserable. Repeated exposure increases sensitivity.

Prevention:

  • Grind the zinc coating off 2-3 inches from the weld zone on all surfaces
  • Weld outdoors or with strong mechanical ventilation
  • Wear a P100 respirator at minimum (half-face or full-face with P100 cartridges)
  • Position yourself upwind of the weld

Weld Quality on Galvanized

Zinc contamination causes porosity (gas pockets) and poor fusion. The zinc boils at 1,650F (899C), well below steel’s melting point, and the zinc vapor creates gas bubbles in the weld pool. Grinding off the coating in the weld zone eliminates this problem.

Restoring Protection

After welding, the bare steel in the weld zone will rust. Apply cold galvanizing spray (zinc-rich paint) or brush-on zinc compound to restore the coating. A properly applied cold galvanizing spray provides 90% of the protection of hot-dip galvanizing.

Latch and Hardware

Latch Mounting

Bolt-on latches allow adjustment and replacement. Weld-on latches are permanent and tamper-resistant. For most farm gates, a bolt-on chain latch or slide bolt works well and can be relocated if the gate shifts over time.

If welding a latch bracket, position it so the latch operates naturally at the height you’ll be reaching it. Mounting a latch at 48 inches is comfortable from the ground. If you open the gate from horseback, mount it at 54-60 inches.

Wheel and Caster for Long Gates

Gates over 14 feet benefit from a support wheel at the latch end. Weld a caster bracket to the bottom of the gate at the latch corner. A 4-6 inch swivel caster takes the weight off the hinges and prevents sagging. Size the bracket so the caster contacts the ground with the gate level.

Finishing

Paint

Clean the entire gate with a wire wheel or flap disc to remove mill scale and light rust. Apply a rust-inhibiting primer (self-etching or red oxide). Follow with a topcoat of oil-based enamel or chassis paint. Pay attention to the inside corners of tube joints where moisture sits.

Two coats of primer plus one topcoat is the minimum for outdoor steel. Three coats of topcoat on surfaces facing up (where water pools) extends the life considerably.

Powder Coating

If you have access to a powder coating oven large enough for a gate, powder coat is the most durable finish for farm gates. It resists chipping, UV exposure, and moisture far better than paint. The downside is the size of the oven required and the cost per piece.

Common Gate-Building Mistakes

No diagonal brace. Every gate without a diagonal sags. It’s just a question of when. This is the most common and most easily prevented failure.

Partial welds. Tacking joints and calling them done. A gate gets opened and closed thousands of times per year, flexed by wind, leaned on by animals, and cycled through hot and cold seasons. Partial welds crack. Weld every joint completely.

Wrong post spacing. Measure the gate plus 2-3 inches of clearance on each side, then set the posts. Posts set too close mean the gate binds. Posts set too far apart require an oversized latch gap. Build the gate first, then set the posts to fit.

Undersized hinges. A 200-lb gate on light-duty hinges bends the pins and wears the barrels within a year. Use hinges rated for at least 1.5x the gate weight to account for dynamic loads from wind and livestock impact.

Gate building and fence repair are practical skills that pay off immediately on any farm or ranch. Build square, brace diagonally, weld completely, and paint before it rusts.

For more farm welding projects, see the farm & ranch welding overview and our guide to farm equipment repair welding.