Skip to content
Omnikalc

What size pet gate do you need?

Enter the opening width, the gate's width range, the width of one extension and your dog's shoulder height: get the extensions to add, the width range with them and the gate height to look for.

Updated on
Your inputs
in

Value out of range

in

Value out of range

in

Value out of range

in

Value out of range

in

Value out of range

Results

Extensions to add

1

Gate height to look for

30 in

Pressure-mounted gates can be pushed out: use a hardware-mounted gate at the top of stairs, and choose a taller gate or one without footholds for dogs that climb or jump
Narrowest width with extensions
36.0 in
Widest width with extensions
41.0 in

A pet gate keeps a dog out of the kitchen, off the stairs or away from a new baby. To fit, its width range must cover your doorway, often with an extension, and it must be tall enough that your dog cannot jump it. This calculator works out the extensions, the width range and the height to look for.

How the calculation works

  • Extensions = (opening width − gate maximum width) ÷ extension width, rounded up
  • Width range with extensions = gate minimum and maximum + extensions × extension width
  • Gate height to look for = dog’s shoulder height × 1.5

A 38 in opening is wider than a gate that adjusts from 29 to 34 in, so you add 1 extension of 7 in. The gate then fits openings from 36 to 41 in. For a dog 20 in at the shoulder, look for a gate about 30 in tall.

Gate types

Type Best for
Pressure-mounted doorways and the bottom of stairs
Hardware-mounted the top of stairs and wide openings
Freestanding low-energy dogs and open spaces
Retractable areas you pass through often
Extra-tall, 36 to 42 in jumpers and large dogs

Safety tips

  • Never use a pressure-mounted gate at the top of stairs: a push can dislodge it.
  • Choose vertical bars without footholds for dogs that climb.
  • Gaps between bars should be narrow enough that small dogs and puppies cannot squeeze through.
  • Check that the walk-through door opens away from stairs and closes on its own.
  • Teach your dog to wait calmly at the gate, rather than jumping on it.

How to measure the opening

Measure the opening at the floor and at the height where the gate’s top bar will sit, since door frames and walls are not always straight. Use the narrower figure for the gate minimum and the wider one for the maximum, and remember that baseboards can reduce the width at floor level.

Frequently asked questions

What size pet gate for a 38 in doorway?

A 29 to 34 in gate with one 7 in extension, which fits openings from 36 to 41 in.

How tall should a dog gate be?

About 1.5 times the dog's shoulder height: 30 in for a dog 20 in at the shoulder.

Can I use a pressure gate at the top of stairs?

No, use a hardware-mounted gate there, since a push can dislodge a pressure gate.

How do I measure for a pet gate?

Measure the opening at the floor and at the top bar height, and account for baseboards.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.