All 23 Construction Calculators

Twenty-three free construction calculators, grouped by the part of the job you are on: the deck and its stairs, the roof, concrete, stone and soil, paving, the interior finishes and the layout in between. Each one shows its formula, a worked example you can load, and the code section it relies on.

Not sure where to start? Match your question to a calculator in the table below, or follow one of the project paths further down. Every page puts the calculator first, then the working, the examples and a short FAQ.

  • 23 calculators
  • 24 guides
  • Formulas shown
  • No account or signup

Decks, stairs and railings

Everything for the structure you stand on: board and joist counts, stairs that meet the riser and tread limits, and guards that pass the 4 inch rule.

Roofs and framing

Pitch, area and framing in the order a roof job needs them: read the pitch, count the shingles, then cut the rafters to the span.

Patios and drainage

Work that sits on the ground: a patio laid on a compacted base, and a French drain that carries water away from it.

Measuring and layout

The measuring every other job depends on: squaring a corner with equal diagonals and adding fractions on a tape.

Concrete

Concrete from three angles: cubic yards for footings, columns and steps, a slab with its rebar, joints and base, and the number of bags when you mix it yourself.

Gravel, stone and sand

Loose stone sold by the ton or the cubic yard: gravel for drives and bases, decorative landscape rock, and sand for sandboxes and leveling layers.

Topsoil and mulch

Soil and mulch for beds and lawns: topsoil and compost at the depth the planting needs, and mulch by the bag or the yard.

Asphalt and bitumen

Hot-mix asphalt for a drive or a lot, and the bitumen for the tack coat or prime coat that goes under it.

Lumber, drywall and tile

Materials priced by a unit that is not obvious: lumber by the board foot, drywall by the sheet and tile by the box, each with the waste a real job needs.

Which calculator answers your question?

Most people arrive with a question, not a tool name. These are the twenty-three questions the calculators were built to answer, with the result each one returns.

Which calculator answers which question
The questionCalculatorWhat you get
How many deck boards, joists and posts do I need?Deck calculatorA board count with waste, joist pieces, posts and a sample cost
What riser height and stringer length do I need for this rise?Stair calculatorEqual risers, treads, stringer length and an IRC check
How many balusters fit between these posts?Baluster calculatorA count, an equal gap and the on-center spacing
What is my roof pitch in degrees, and what is 6:12 as a slope?Roof pitch calculatorPitch, angle, percent slope and the pitch multiplier
How many squares and bundles of shingles does my roof need?Roofing calculatorRoof area, squares and bundles with waste
How long is the rafter, and how deep can I cut the birdsmouth?Rafter calculatorRafter length, the seat cut and the notch check
How many pavers, how much base and how much sand?Paver calculatorPavers, base stone, sand and edge restraint
How much gravel and pipe does a French drain need?French drain calculatorStone, pipe, fabric and the fall
Is my foundation, slab or deck frame square?Squaring calculatorThe diagonal that squares it and a tolerance check
What is 5 ft 3 1/2 in plus 2 ft 8 3/4 in?Feet and inches calculatorA tape-measure answer, decimals and millimeters
How many cubic yards and tons of gravel do I need?Gravel calculatorYards, tons, coverage per ton and a sample cost
How many tons of landscape rock does this bed need?Stone calculatorTons, yards, bags, edging and a bulk-versus-bag cost
How much sand do I need for a sandbox or a leveling layer?Sand calculatorYards, tons and bags, with dry and wet weights
How many cubic yards of topsoil for a lawn or raised bed?Topsoil calculatorYards of soil and compost, with a depth check
How many bags or yards of mulch does this bed need?Mulch calculatorBulk yards, bags, edging and a tree-ring option
How many tons of asphalt does my driveway need?Asphalt calculatorTons, base stone, milling and a sample cost
How much bitumen does a tack coat or prime coat take?Bitumen calculatorGallons or liters, weight and binder in a mix
How many board feet are in this lumber list?Board feet calculatorBoard feet, linear feet, volume and cost
How many sheets of drywall and how much mud does a room need?Drywall calculatorSheets, joint compound, tape and screws
How many tiles, boxes and how much grout for this floor?Tile calculatorTiles, boxes, grout and the effect of the joint
How many cubic yards of concrete for a slab, footing or post hole?Concrete calculatorYards, bags and a ready-mix versus bagged cost
How much concrete, rebar and base does a slab need?Concrete slab calculatorYards, bags, base stone, rebar, joints and forms
How many bags of concrete do I need, and what will they weigh?Concrete bag calculatorBags by weight, the total load and bagged versus ready-mix

Every calculator explained

What goes in, what comes out and which rule gets checked, so you know whether a calculator fits the job before you open it. The calculators are for planning and shopping. Numbers for permits and safety-critical work still need the code that applies where you build.

Deck calculator

Turns a deck's length and width into a shopping list for the boards, joists, beam, posts and screws.

You enter
Length and width, board size and direction, the gap, waste, joist size and spacing, post spacing and optional prices.
You get
Boards to buy with the rows and pieces per row shown, joist pieces, beam and posts, face screws and a sample cost you can edit.
What it checks
The joist span against the IRC deck joist table (R507.6), so a span that looks fine by rule of thumb is flagged if the table disagrees.

Stair calculator

Takes the total rise from floor to floor and returns equal risers, treads and the stringer to cut.

You enter
Total rise, target riser height, tread depth and thickness, width, headroom, how the stair meets the top and any landing.
You get
Number and height of risers, treads and total run, stringer length, the angle, the first plumb cut and how many stringers to buy.
What it checks
IRC riser, tread, riser variation, headroom and rise-between-landings limits, and England's private stair limits from Approved Document K.

Baluster calculator

Spaces balusters evenly across the opening between two posts so no gap is wider than the limit.

You enter
The opening measured post to post, face to face or center to center, the post and baluster widths and the maximum gap.
You get
How many balusters to buy, the equal gap between them and the on-center spacing to step off with a tape.
What it checks
The 4 inch sphere rule for guards (IRC R312.1.3), or the 100 mm limit used in England.

Roof pitch calculator

Converts between rise and run, the x:12 pitch, degrees and percent slope, and gives the multiplier for sloped lengths and areas.

You enter
A rise and run, or a pitch, or an angle, and optionally a plan length and width.
You get
The pitch in x:12, the angle in degrees, the percent slope, the pitch multiplier, the rafter line per foot of run and a rough roof surface.
What it checks
It is a conversion tool rather than a code check. The page explains the IRC minimum slope for asphalt shingles (R905.2.2), and it pairs with the roofing and rafter calculators.

Roofing calculator

Works out how much roof there is from the building size and pitch, then how many squares and bundles of shingles to buy.

You enter
Building length and width, overhang, the pitch or angle, a second section such as a garage, waste, bundles per square and optional prices.
You get
Roof area in square feet, roofing squares, squares and bundles to buy with waste, and a sample cost. Ridge cap, starter and underlayment are listed as extra.
What it checks
The numbers are geometry. The page points to the IRC roofing chapter and the shingle maker's instructions for minimum slope, underlayment and fastening.

Rafter calculator

Finds the length of a common rafter from the span and pitch, and lays out the birdsmouth that seats it on the wall.

You enter
Gable or shed roof, building span, pitch, overhang, ridge thickness, seat cut and rafter depth.
You get
Rafter length with and without the tail, run, rise and angle, the board length to buy, the birdsmouth height above plate and the hip or valley length.
What it checks
The birdsmouth notch against the one-quarter-depth limit for rafters (IRC R802.7.1).

Paver calculator

Counts the pavers, the base stone and the sand for a patio, a circle or a fire pit ring.

You enter
Shape and size, paver size, joint width, waste, base and sand depth, the stone density and optional prices.
You get
Pavers to buy, base gravel in cubic yards and tons, bedding sand, a polymeric sand allowance, edge restraint length and a sample cost.
What it checks
Nothing code-related. The base depths follow common paving practice; a driveway that carries heavy vehicles may need more.

French drain calculator

Sizes a French drain: the stone, the pipe, the filter fabric and whether the trench has enough fall.

You enter
Trench length, width and depth, pipe diameter, the slope, whether the ground falls with the drain, waste, stone density and optional prices.
You get
Drainage stone in cubic yards and tons with the pipe volume taken out, pipe sticks, fabric area, the fall in inches, trench volume and a sample cost.
What it checks
A fall of at least 1 percent, and a warning when the trench is deeper than 48 inches, where trench collapse becomes a hazard.

Squaring calculator

Gives the diagonal that makes a rectangular layout square, and checks the diagonal you measured against it.

You enter
Two sides and, if you have it, the diagonal you measured, with a tolerance. A 3-4-5 mode scales the triangle from a base unit.
You get
The diagonal that squares the layout, and whether your measured diagonal is within tolerance.
What it checks
The Pythagorean relationship between the sides and the diagonal, which is exact for a true right angle.

Feet and inches calculator

Adds, subtracts, multiplies and divides lengths the way a tape measure reads them.

You enter
Up to four lengths in feet, inches and fractions, decimals or metric, plus a subtraction, a multiplier or divisor and a rounding step.
You get
The answer in feet, inches and fractions, plus decimal inches, decimal feet, millimeters, centimeters and meters, with the working.
What it checks
It rounds to the nearest fraction you choose and tells you when a result falls exactly on a mark.

Concrete calculator

Turns the size of a slab, footing, wall, round column or flight of steps into cubic yards of concrete and bags of mix.

You enter
The shape and its size, how many of them, a waste allowance, the yield of a bag and optional prices for ready-mix and bags.
You get
Concrete to order in cubic yards and cubic meters, the volume in cubic feet, the number of bags and a ready-mix versus bagged cost.
What it checks
For steps, a rise and run check against the IRC maximum rise of 7¾ inches and minimum run of 10 inches.

Concrete slab calculator

Sizes a flat slab, patio, garage floor or driveway: the concrete, the bags, the rebar, the control joints and the stone base under it.

You enter
A length and width or an area, the thickness, a waste allowance, the rebar spacing, the joint spacing, the base depth and optional prices.
You get
Cubic yards and bags of concrete, tons of base stone, feet of rebar in sticks, the number of control joints, feet of forms and a sample cost.
What it checks
Joint spacing against the maximum of 24 to 36 times the slab thickness, as quoted from American Concrete Institute guidance by a concrete supplier.

Concrete bag calculator

Turns the size of a pour, or a volume in cubic yards, into the number of 40, 50, 60 or 80 lb bags of concrete mix.

You enter
A slab size or a volume, the weight printed on the bag, a waste allowance and optional prices for bags and ready-mix.
You get
Bags to buy, the total weight to move, the bags in a cubic yard or meter and a bagged versus ready-mix cost.
What it checks
The 0.0075 ft³ per pound yield is checked against the QUIKRETE data sheet for all four bag sizes, and the 80 lb result against Sakrete's 45 bags per yard.

Gravel calculator

Turns an area and a depth into cubic yards and tons of gravel to order, and shows how far a ton goes.

You enter
The shape and size of the area or its measured area, the depth, the weight of the stone, waste, compaction and optional prices.
You get
Gravel to order in cubic yards, the weight in tons, coverage per ton and per cubic yard, and a sample cost with delivery that you can edit.
What it checks
Nothing code-related. The default weight follows the Missouri DOT estimating factor, and the page shows where a compacted base departs from it.

Stone calculator

Turns a bed size and a depth into tons, cubic yards and bags of landscape rock, with edging and a bulk-versus-bag cost.

You enter
The shape and size of the bed or its measured area, the depth, the type of stone, waste, bag size and optional prices.
You get
Stone to order in tons and cubic yards, coverage per ton, the number of bags, edging length and a sample cost for bulk and bagged stone.
What it checks
Nothing code-related. The weights are supplier-quoted planning values for river rock, decomposed granite, crushed rock and lava rock.

Sand calculator

Turns an area and a depth into cubic yards, tons and bags of sand, and shows how much heavier wet sand is.

You enter
The shape and size of the area or its measured area, the depth, whether the sand is dry, damp or wet, waste, compaction, bag weight and optional prices.
You get
Sand to order in cubic yards and tons, the number of bags, coverage per ton and a sample cost for bulk and bagged sand.
What it checks
Nothing code-related. The page shows the supplier-quoted weight of dry and wet sand and the effect of moisture on a delivery.

Topsoil calculator

Turns an area and a settled depth into cubic yards of topsoil, with an optional compost mix and an allowance for settling.

You enter
The shape and size of the area or its measured area, the settled depth, what the soil is for, the compost share, waste, settling and optional prices.
You get
Soil to order in cubic yards split into topsoil and compost, the weight of the topsoil, the number of bags and a sample cost for bulk and bagged soil.
What it checks
A depth check against the 4 in minimum for a new lawn (Penn State Extension) and the 8 in minimum for a raised bed (University of Maryland Extension).

Mulch calculator

Turns a bed size and a depth into cubic yards and bags of mulch, with a ring option for the ground around a tree.

You enter
The shape and size of the bed, a ring with a hole in the middle or its measured area, the depth, waste, bag size and optional prices.
You get
Mulch to order in cubic yards, the number of bags, what one bag covers, edging length and a sample cost for bulk and bagged mulch.
What it checks
A depth check against the 2 to 4 inches that University of Minnesota Extension and the University of Missouri advise.

Asphalt calculator

Turns a driveway or lot size and a compacted thickness into tons of asphalt, with the stone base, milling and a sample cost.

You enter
The shape and size of the paved area or its measured area, the compacted thickness, the mix weight, waste, the stone base, any milling depth and optional prices.
You get
Asphalt to order in tons, the weight per square yard, tons of base stone and millings, and a sample cost for materials or an installed price.
What it checks
Nothing code-related. The page shows the mix weight sources (Penn State, the Colorado Asphalt Pavement Association) and the thickness a residential driveway usually takes.

Bitumen calculator

Turns an area and a spray rate into gallons or liters of bitumen for a tack or prime coat, or the binder inside an asphalt mix.

You enter
The shape and size of the area, the spray rate, the number of coats, the emulsion residue, the specific gravity, and either a layer thickness and binder percentage for a mix.
You get
Bitumen to order in gallons or liters, its weight, the cover stone for a prime coat and a sample cost.
What it checks
Nothing code-related. The page lists the spray rates that Caltrans, Penn State, the Tennessee DOT and the Missouri DOT publish.

Board feet calculator

Turns thickness, width, length and a board count into board feet, linear feet and volume, for up to three sizes on one lumber list.

You enter
The thickness, width and length of each board size, how many boards of each, a waste allowance and an optional price per board foot.
You get
Board feet to buy, net board feet, linear feet, volume in cubic feet or cubic meters and a sample cost.
What it checks
Thickness in quarters of an inch and width in whole inches, the way University of Kentucky Extension says rough lumber is measured.

Drywall calculator

Turns a room size, a wall height and the doors and windows into sheets of drywall, joint compound, tape and screws.

You enter
The room size or a known area, the wall height, the doors and windows to take off, the sheet size, waste, the framing spacing and optional prices.
You get
Sheets to buy, gallons and pails of joint compound, feet of tape, the screw count and a sample cost.
What it checks
Nothing code-related. The screw count follows the Gypsum Association's GA-216 spacing for walls and ceilings.

Tile calculator

Turns a floor or wall size and a tile size into tiles, boxes and grout, with the joint width, tile thickness and waste.

You enter
The size of the floor or wall or its area, the tile size, the joint width, the tile thickness, waste, the coverage per box and optional prices.
You get
Tiles to buy, boxes, pounds or kilograms of grout and bags, the share of the floor taken by joints and a sample cost.
What it checks
Nothing code-related. The grout figure is checked against the coverage charts that Custom Building Products and LATICRETE publish for a 25 lb bag.

Common projects, calculator by calculator

Jobs rarely need one calculator. These are the orders in which the tools are usually needed, and the reason for each step.

Building a deck

  1. Squaring calculator. Square the frame layout before you set any posts.
  2. Deck calculator. Count boards, joists, beam and posts for the plan.
  3. Stair calculator. Size the stair from the finished deck height.
  4. Baluster calculator. Space the balusters between the posts on the guard.

Re-roofing a house

  1. Roof pitch calculator. Turn the pitch you measured into degrees and a multiplier.
  2. Roofing calculator. Convert the building size and pitch into squares and bundles.
  3. Rafter calculator. Check rafter lengths if the framing is being repaired or extended.

A patio and its drainage

  1. Squaring calculator. Square the corners so the pattern runs true.
  2. Paver calculator. Order pavers, base stone and sand.
  3. French drain calculator. Size a French drain if water sits against the patio or the house.

A concrete slab or pad

  1. Squaring calculator. Square the forms before the stone goes in.
  2. Gravel calculator. Order the compacted stone base.
  3. Concrete slab calculator. Size the concrete, rebar, control joints and forms.
  4. Concrete bag calculator. Turn the volume into bags if you are mixing it yourself.

Landscaping a yard

  1. Topsoil calculator. Fill the beds and lawn to the depth the planting needs.
  2. Mulch calculator. Cover the beds, and the rings around trees.
  3. Stone calculator. Edge or fill a bed with decorative rock.
  4. Sand calculator. Level a path or fill a sandbox.

Paving a driveway

  1. Gravel calculator. Order the crushed stone base and compact it.
  2. Asphalt calculator. Order tons of hot mix for the area and thickness.
  3. Bitumen calculator. Work out the tack coat or prime coat between the layers.

Finishing a room

  1. Board feet calculator. Price the framing and trim lumber by the board foot.
  2. Drywall calculator. Count sheets, joint compound, tape and screws.
  3. Tile calculator. Count tiles, boxes and grout for the floor.

Framing and layout

  1. Feet and inches calculator. Do the fraction arithmetic once, on the tape's own terms.
  2. Squaring calculator. Check the layout with equal diagonals.
  3. Rafter calculator. Cut rafters to the span and pitch you measured.

How the numbers are checked

Every formula is printed on its page, so you can redo the sum with a pencil. The worked examples are computed by the same code as the calculator, which means the text cannot say one thing while the tool says another. That code is covered by automated tests, including known-answer cases and the places where a simpler formula goes wrong: the extra rise under a rafter tail, the gaps against a post, a joist span that looks fine by rule of thumb and fails the table.

Where a result is checked against a rule, the page names the section of the 2021 International Residential Code, England's Approved Document K or the American Wood Council's deck guide. The about page explains the process, the editorial policy sets the standard for sources and corrections, and the disclaimer says what the results are not.

FAQ

Are the LayoutMath calculators free?

Yes. Every calculator and guide is free, with no account and no paywall.

Which calculator should I start with for a new deck?

Start with the squaring calculator when you lay out the frame, then the deck calculator for the shopping list, the stair calculator for the way down and the baluster calculator for the guard. The feet and inches calculator covers any fraction arithmetic in between.

Do the calculators work in metric?

Yes. Every calculator accepts feet and inches, fractions, millimeters and meters. The units follow your browser's region until you switch them with the ft/in and m/mm buttons in the header, and the choice is remembered on your device only.

Which building code do the code checks use?

Section numbers refer to the 2021 International Residential Code, with England's Approved Document K for stairs and guards and the American Wood Council's DCA 6 guide for decks. Local authorities adopt different editions and add amendments, so confirm with your building department.

How accurate are the results?

The formulas are printed on each page and the worked examples run on the same code as the calculator, which is covered by automated tests. The answer is only as good as your measurements, and it is a planning estimate, not a substitute for plans or an engineer.

Do the material calculators allow for waste, settling and delivery?

Waste is a field on every material calculator, and gravel, sand and topsoil also have a compaction or settling field. The weight of a cubic yard of gravel, stone, sand or soil is a field too, because it varies by supplier, so type the figure on your ticket if you have one. Delivery and short-load fees are not included in the sample costs.

Do the calculators save or send my numbers?

No. The math runs in your browser and the numbers you type are not sent to a server. Only your unit and light or dark choice are saved on your own device. The privacy policy lists exactly what is stored.

Can I use these results for a permit application?

Use them for planning and shopping. A permit usually needs drawings that meet your local building department's requirements, sometimes prepared by a licensed designer, so treat the calculators as a way to check the numbers, not to replace the submission.