Check the math before you burn the lumber.
Most calculators spit out a mystery number and hope you don't miscut. LayoutMath prints every formula live, checks IRC & AWC code limits on the spot, and stacks your deck, stairs, and concrete into one printable Job Sheet.
See waste %, joist spans, and exact working as you type — never trust a mystery number with your lumber order.
Stair risers, 4-inch baluster ball checks, and deck spans cite the exact code section before you cut.
Save Deck + Stairs + Railings + Footings into a single combined buy list stored in your browser. Zero login.
Pick the job
No calculators match that filter. Try clearing the search or switching to All 23.
Deck material
Boards, joists, beams, posts and a cost you can edit.
Try it →IRC checked02Stair & stringer
Total rise in; risers, treads, stringers and an IRC check out.
Try it →IRC checked03Baluster
Count, equal gap and on-center spacing, checked against the 4 in ball.
Try it →Live diagram04Roof pitch
Rise and run in; x:12 pitch, degrees, slope and multiplier out.
Try it →Squares & bundles05Roof area
Building size and pitch in; roof area, squares and bundles out.
Try it →Live diagram06Rafter
Span and pitch in; rafter length, birdsmouth and hip length out.
Try it →Base + sand07Paver
Pavers, base, sand and cost for patios, circles and fire pit rings.
Try it →Pipe + stone08French drain
Gravel, pipe, fabric, slope and a cost you can edit.
Try it →3-4-5 check09Squaring
Two sides in; the diagonal that squares a layout out.
Try it →Most used10Feet & inches
Add, subtract, multiply and divide tape-measure lengths. Decimals and mm too.
Try it →Volume & bags11Concrete
Cubic yards and bags of concrete for a slab, footing, column or steps.
Try it →Most used12Concrete slab
Concrete, rebar, base stone and joints for a patio, pad or driveway.
Try it →40-80 lb bags13Concrete bags
How many 40, 50, 60 or 80 lb bags a pour takes, and what they weigh.
Try it →Tons & yd³14Gravel
Cubic yards and tons for any area, with waste and compaction.
Try it →Landscape rock15Stone
Tons, cubic yards and bags of landscape rock for a bed or path.
Try it →Bedding & fill16Sand
Cubic yards, tons and bags of sand for any area.
Try it →Lawn & beds17Topsoil
Cubic yards of topsoil and compost for a lawn, bed or fill.
Try it →Bags & bulk18Mulch
Cubic yards and bags of mulch for a bed, border or tree ring.
Try it →Tonnage19Asphalt
Tons of asphalt, base stone and milling for a driveway, road or lot.
Try it →Spray & mix20Bitumen
Gallons or liters and tons of bitumen for a coat or a mix.
Try it →Lumber yard21Board feet
Board feet, linear feet, volume and cost for a lumber list.
Try it →Sheets & mud22Drywall
Sheets, joint compound, tape and screws for a room.
Try it →Layout & grout23Tile
Tiles, boxes and grout for a floor, wall or backsplash.
Try it →Three steps from tape measure to buy list
- Pick the job. Each calculator does one thing, like the boards for a deck or the risers for a stair, so there is nothing to learn first.
- Type what you measured. Write it the way you read it: 5' 3 1/2", 63.5 or 1.6m all work, and the units follow your browser unless you change them.
- Check it, then copy it. The result shows its working and its code check. Copy the list into a message or a materials order.
Built to be checked
Every formula is printed on the page. The worked examples run on the same code as the calculator, and each code check names its section, so you can read the source instead of taking our word. No account, no paywall, no app.
These are planning estimates. They do not replace drawings, engineering or the code enforced where you build.
Guides that show the working
A calculator gives a number. A guide explains where it comes from, what the code says and where people go wrong. Each of the 24 guides sits beside the calculator it feeds, with every figure computed by the same code.
- How many deck boardsCount rows, count boards per row, then add waste.
- Minimum roof pitchMinimum slope for shingles, metal, tile, slate and membrane.
- How deep a French drain should beTrench depth and width, the 1 percent fall and trench safety.
- Deck joist spacing12, 16 or 24 in on center, with the span table and joist counts.
- Stair stringer layoutFrom total rise to cut stringers, treads, footings and code.
- Railing post spacingEqual bays of 6 ft or less, post counts and the connection.
- How many squares in a roofOne square is 100 sq ft — see bundles, waste and the parts that aren't shingles.
- How to measure roof slopeFour ways to read a roof slope, safest first, and the error to expect.
- Rafter spacing and span16 vs 24 in centers, span vs length, and how to size the lumber.
- Stair handrail heightThe 34 to 38 in rule, grip size, returns and the 4 in gap under the 2021 IRC.
Who LayoutMath is for
Homeowners planning a weekend build, carpenters and builders who want a second check on a count, and anyone who needs the reasoning behind a number as well as the number. Each calculator is one job, so a stair does not need a lesson in roofing first.
The pages say plainly what they do not do. They do not replace drawings, they do not price a job for you, and where a code decides the answer they name the section and send you to the source. Read how the numbers are made or the editorial policy to see how pages are checked.
Used by homeowners and trades planning real projects — no account, no app, no paywall.
Questions people ask first
What can I work out on LayoutMath?
Deck boards, joists and posts; stair risers and stringers; baluster counts and gaps; roof pitch, roof area and shingle bundles; rafter lengths and birdsmouth cuts; paver counts, base and sand; French drain stone and pipe; concrete, slabs and bags of mix; gravel, stone, sand, topsoil and mulch; asphalt and bitumen; board feet, drywall and tile; square corners; and feet and inches arithmetic.
Do I need to sign up or install anything?
No. The calculators open in the browser on a phone, tablet or computer. There is no account, no app and no paywall.
Is it safe to build from these numbers?
They are planning estimates that show their working. Stairs, guards, spans and drainage are safety-critical, so check the result against the code that applies where you build, and ask your building department or a licensed professional when a failure would hurt someone.
Where do the code limits come from?
From the 2021 International Residential Code, Approved Document K for England and the American Wood Council's deck guide. Each code check names its section, and the guides link to the primary source.
Can I use it on a phone at the lumber yard?
Yes. The pages are built for small screens, the buttons are sized for thumbs, and each result can be copied as a plain-text list to paste into a message or an order.
How do I report an error or request a calculator?
Email hello@layoutmath.com with the page address and the numbers you entered. We check every report against the formula and source code section, and fix confirmed issues directly.