Skip to main content

How to Build a Metal Gate Frame

Short answer

To build a metal gate frame, measure the opening and take off the hinge and latch gaps, pick the tube and cut the stiles and rails. Clamp them flat and square on a table, tack all four corners, check the diagonals match, then weld in short runs on opposite corners.

By Harry TolleyPublished 7 min read
A bare aluminium square tube gate frame clamped flat on a fabrication table in a small workshop, its mitred corners freshly tacked
Illustration
On this page

A gate frame is four lengths of tube welded into a rectangle. That sounds easy. The hard part is getting it to come off the table flat, square and the right size, so it hangs true and the latch lines up first go.

This guide walks through the whole frame in order: measure, pick the tube, cut, jig, tack, weld, prep for hardware and send it to the powder coater. It assumes aluminium tube, since that is what most gate shops weld now.

What you need to know

  • Measure the opening at the top and the bottom, use the smaller number, then take off the hinge and latch gaps.
  • Mitre corners need the same tube all round. Butt joints are quicker to cut and leave open ends to cap.
  • Clamp the frame flat on a table and check both diagonals before you strike a single tack.
  • Tack all four corners first, check again, then weld in short runs on opposite corners.
  • Plan hinge and latch positions before welding, and ask the powder coater about drain holes.
The short version, in 24 seconds. No sound needed.

How big should the gate frame be?

Start with the clear opening: the space between the two posts. Measure it at the top and at the bottom. Posts are rarely perfectly parallel, so use the smaller number.

Then take off the gaps the gate needs to swing:

  • Hinge side gap. Set by the hinge. Some need 15 mm, some roller hinges want over 60 mm. Read the hinge maker's sheet before you cut anything.
  • Latch side gap. Set by the latch. Around 8 to 10 mm is common for a lever latch.
  • Bottom gap. The ground clearance under the gate. On flat ground 50 mm is a common starting point. Measure the path across the whole swing, because ground that rises will catch the gate.

Worked example: a 1,000 mm opening, a 15 mm hinge gap and an 8 mm latch gap gives a leaf 977 mm wide. If you want more detail on taking measurements on site, see how to measure up a gate job.

Which tube should you use for the frame?

For a pedestrian gate up to about 1.2 m wide, 40x40 or 50x50 SHS with a 3 mm wall is a common pick in aluminium. For a wider leaf, go deeper rather than thicker. A 65x35 RHS stood on its edge resists sag far better than a 50x50 of the same weight.

Wall thickness matters for welding too. A 3 mm wall is much more forgiving than 1.6 mm or 2 mm. Thin aluminium wall blows through fast, and every hole you fill adds heat and pulls the frame.

The RHS vs SHS guide goes through why depth beats wall thickness, with sizes for posts and long rails.

Should the corners be mitred or butt jointed?

Both work. Pick one before you cut, because it changes every length on the cutting list.

Two gate frame corners. On the left, a mitre joint: the rail and the stile are both cut at 45 degrees and meet on a diagonal line. On the right, a butt joint: the rail runs the full width and the stile is cut square and sits under it.RailStileMitre jointBoth ends cut at 45 degreesOpen endRailStileButt jointSquare cuts, rail runs through
A mitre hides the tube ends. A butt joint is quicker to cut but leaves an open end on the rail.

A mitre joint cuts both pieces at 45 degrees. It looks clean, has no open tube ends and gives a longer weld at each corner. It needs the same tube on all four sides, and a saw that cuts a true 45. A degree out on each cut adds up to a frame that will not close square.

A butt joint cuts everything square. It is quicker and easier to get right on a drop saw. It also lets you use a different tube on one member, like a heavier bottom rail. The catch is the open end of the rail, which needs an end cap or a welded plate.

Here is the cut list for the 977 mm by 1,800 mm leaf in 40x40x3 SHS:

JointStiles (x2)Rails (x2)Cuts
Mitre1,800 mm long point977 mm long point45 degrees both ends
Butt, rails run through1,720 mm977 mmSquare both ends

For the butt frame, each stile is the leaf height less two tube depths: 1,800 minus 80 gives 1,720 mm. Mark every piece as you cut it. The gate cut list guide shows how to lay out a full list with infill and offcuts.

How do you set the frame up flat and square?

You need a flat table, four or more clamps and a tape. Check the table first. Lay a long straight edge across it both ways. If the table is out, the frame will be too.

  1. Lay the four pieces out on the table in their final positions.
  2. Clamp a straight stop block along one long side. Push the hinge stile hard against it.
  3. Butt the rails up to the stile and set a framing square in each corner.
  4. Close the frame with the second stile and clamp every corner to the table.
  5. Measure both diagonals, corner to corner. Tap the frame until the two numbers match.

For our 977 by 1,800 mm leaf, each diagonal should read close to 2,048 mm. Aim to get the two within 2 mm of each other before you tack.

A tape measure stretched corner to corner across an aluminium gate frame clamped flat on a fabrication table
Two equal diagonals mean a square frame. Check them before the first tack and again after. (Illustration)

What order do you tack and weld the frame?

Heat makes metal grow, and a cooling weld pulls the joint toward it. The order you weld in decides which way the frame gets pulled. Spread the heat around and the pulls cancel out.

  1. Tack all four corners

    A small tack weld on the face of each corner. Do opposite corners one after the other, not around the frame in a circle.

  2. Check the diagonals again

    Tacks pull. If the diagonals have moved, knock the frame back now. A tack is easy to break. A full weld is not.

  3. Tack the other faces

    Flip the frame or reach under and tack the back and outside faces too.

  4. Weld in short runs

    Weld one face of one corner, then the same face of the opposite corner. Keep going around in that pattern, then flip and do the other side.

  5. Let it cool in the clamps

    Leave the clamps on until you can rest your hand on the corners.

Aluminium needs clean metal, the right filler and pure argon. The aluminium gate welding guide covers settings. If your frames keep coming off the table bent, see how to stop a gate frame warping.

Close-up of a mitred aluminium square tube corner held with a framing square and a clamp, with two small bright tack welds across the joint
Tack every corner before you run a full weld anywhere. (Illustration)

What should you prep for the hinges and latch?

Decide where the hardware goes before the frame is welded. It is much easier to add a plate or a stiffener now than to cut into a finished frame.

  • Hinges. Put the top hinge close to the top rail and the bottom hinge close to the bottom rail. The wider apart they are, the less each one has to hold. Mark the heights on the hinge stile.
  • Latch. Mark the latch height on the latch stile. Around 1,000 to 1,100 mm off the ground suits most hands.
  • Lock box. If the gate takes a lock box, weld it in with the frame, not after. See fitting a lock box.
  • Bracing. Past about 1.5 m wide, plan a diagonal brace or a mid rail now.

Welding the hinges on comes later, once the gate is on site or set up against its post. The hinge welding guide covers lining the pins up so the gate swings true.

How do you get the frame ready for powder coat?

A powder coat finish shows every lump and pit. Spend ten minutes on prep and the gate looks far better.

  • Brush off the black soot (smut) around each weld with a clean wire brush.
  • Dress any welds on show with a flap disc made for aluminium. A standard grinding wheel clogs and leaves grit in the metal.
  • Cap or plate any open tube ends from butt joints.
  • Ask your powder coater if they want drain holes. Pretreatment liquid trapped in a tube can weep out later and spoil the finish.
  • Take off the hinge pins and anything else that should not get coated.

A frame that is square, braced and on good hinges will not sag later. If an old one already has, see how to fix a sagging metal gate.

Common questions

What size tube is best for a gate frame?

For an aluminium pedestrian gate, 40x40 or 50x50 SHS with a 3 mm wall is a common choice. Wider leaves want a deeper section, like 65x35 RHS on its edge, rather than a thicker wall.

How much smaller than the opening should a gate be?

Take the hinge gap and the latch gap off the clear opening. With a 15 mm hinge gap and an 8 mm latch gap, a 1,000 mm opening gives a 977 mm leaf. Your hinge sets the real number.

Is a mitre joint stronger than a butt joint?

A mitre has a longer weld at each corner, and a butt joint has more tube end to weld around. Both are strong enough for a gate when welded right. Choose on looks, cutting gear and whether every side is the same tube.

How do you check a gate frame is square?

Measure both diagonals, corner to corner. If they match, the frame is square. Check before the first tack, after tacking and after the final weld.

Can you build a gate frame without a welding table?

Yes, on any surface you have checked flat, like a level slab or sawhorses with a flat beam across them. Clamp the frame down hard and check the diagonals more often.

Should you powder coat aluminium gates?

Most shops do. Powder coat gives an even colour and covers the welds. Clean off the weld soot, dress any welds on show and ask the coater about drain holes before it goes.

Written by Harry Tolley

Harry builds CAD60 with his dad, who has run a fabrication business for 20 years. We write these guides from what goes wrong in a real shop.