Skip to main content

Home & Building Calculators

Stair and Fence Calculator

A stair is set from the floor-to-floor rise divided into equal risers, so every step is the same height and the treads add up to the total run. A fence is set from its length divided into equal post spaces, with pickets and rails per bay and concrete per hole. Enter both measurements and read the counts to order.

United States edition

Calculator

Stair
Fence

Formula

Risers = total rise ÷ target riser, rounded to a whole number. Treads = risers − 1. Posts = fence length ÷ post spacing, plus one, with each gate adding two gate posts. Pickets = fence length ÷ (picket width + gap). Concrete = post holes × π × (diameter ÷ 2)² × depth.

About This Calculator

What It Does

This calculator works out the risers and treads for a stair from its total rise, the stringer length and the count of stringers. It also works out the posts, pickets, rails and concrete for a fence with gates.

Worked Example

Example: a 108 in rise at a 7.5 in target riser gives 15 risers and 14 treads, with the riser height exactly 7.2 in once the rise is shared. A 100 ft fence at 8 ft spacing with one 4 ft gate needs posts for each space plus the gate.

Real-World Usage

Use the riser count to cut the stringers and the post count to order posts before digging. Check the footing diameter and depth against your local frost line before you buy concrete.

Local Context

In the United States, stairs are usually built to a riser near 7.5 in and fences set posts at 8 ft on centre. Enter the figures your plan uses; the calculator does not apply a code.

Last reviewed: November 2026.

Frequently Asked Questions

Why is the riser height different from the target?

The total rise is shared into a whole number of equal risers, so the actual height is the rise divided by the count, which is close to but rarely exactly the target.

Why are there one fewer treads than risers?

A stair with a landing at the top and bottom has one riser more than tread, since the floor is the last step.

How many concrete bags for a post hole?

The volume of one hole is its area times its depth. The calculator multiplies it by the number of holes and rounds up to 80 lb bags, with no waste added.

Does the fence count gate posts?

Yes. Each gate takes two gate posts, and those are counted in the total of posts and in the holes that take concrete.

Related Tools