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.