Deck Cost Calculator
Work out what a new deck costs before you talk to a contractor. Enter the deck size and material to see an installed estimate with railing and a contingency allowance.
Formula: deck area = length x width. Base cost = area x rate per sq ft. Railing adds $35 per linear ft of perimeter. Total = (base cost + railing) x (1 + contingency).
Formulas verified against standard references. Calculator logic tested with verified worked examples. Published: November 11, 2026 | Last updated: November 11, 2026. Fact-checked: November 11, 2026. Our methodology
How to Use the Deck Cost Calculator
Getting a deck estimate takes five quick entries. The tool prices the deck surface by size and material, then adds railing around the edge and your contingency.
- Enter the deck length and width in feet.
- Pick your decking material. Pressure-treated pine is the lowest cost, cedar sits in the middle, composite costs more up front, and hardwood is the premium choice.
- Tick the railing box if the deck needs railing, then set your contingency. 10% is typical.
- Press Calculate, or press Enter. The total appears first and large, with the base cost, the railing cost and the contingency below. Press Reset to clear the form and start over.

The Deck Cost Formula
The deck cost formula is total = (area x rate per sq ft + railing) x (1 + contingency). The area is the length times the width, and the railing is priced at $35 per linear ft of deck perimeter, which is two times the length plus the width.
The installed rates per square foot are $35 for pressure-treated pine, $38 for cedar, $55 for composite, and $60 for hardwood. These are midpoints of the ranges in the HomeGuide 2026 deck cost guide, which lists $25 to $50 per square foot installed for a new deck. Our deck calculator works out how many boards and joists the same deck needs.
Worked Example: 16 by 12 ft Composite Deck
A deck is 16 ft long and 12 ft wide, built with composite decking, with railing and a 10% contingency. Here is exactly what the calculator does.
- Deck area: 16 x 12 = 192 sq ft.
- Base cost: 192 x $55 = $10,560.
- Railing: the perimeter is 2 x (16 + 12) = 56 linear ft, so 56 x $35 = $1,960.
- Contingency: 10% of $12,520 = $1,252.
- Total: $12,520 + $1,252 = $13,772.
As a second check, a 12 by 12 ft pressure-treated deck costs 144 x $35 = $5,040, plus 10% contingency, for $5,544 before railing. The same steps work for any deck, so try your own numbers in the tool above.

What Changes the Price per Square Foot
Material is the biggest lever. Pressure-treated pine is the cheapest decking, cedar costs a little more and weathers to a silver grey if left unstained, composite costs more up front and needs almost no upkeep, and hardwood costs the most and lasts the longest. The rate you pick should match the boards you actually plan to buy.
Height matters too. A ground level deck costs less per square foot than an elevated deck, because an elevated deck needs taller posts, deeper footings, stairs and more railing. Size also matters, since a small deck spreads the fixed costs of footings and permits over fewer square feet. Slope, poor access and rocky soil all push labor up, and local labor rates vary widely by city.
Railing, Stairs and Permits
Railing is priced by the running foot, not by the deck area, which is why this calculator uses the deck perimeter. A deck with railing on all four sides costs more than a deck with railing on two sides, so measure only the sides that need it and adjust the length if part of the edge is open. Stairs are a separate cost, and a long stair run with a landing can add a large amount to the job.
Most towns require a permit for an attached or elevated deck, and a deck permit typically costs $230 to $500. The permit covers the footing depth, the framing and the railing height, so a contractor who skips it can leave you with a deck that fails inspection. Check the local rules before you order materials.
How to Keep the Deck Budget in Check
Keep the deck low and simple. A ground level deck avoids stairs and tall posts, and a rectangular shape wastes fewer boards than a deck with curves or many angles. Pressure-treated pine keeps the material cost down, and staining it every two or three years protects it from rot.
Get three itemized bids before you set a budget, and check that each one lists the decking, the framing, the railing, the footings and the permit separately. Keep your 10% contingency untouched until the footings go in, because that money is for the surprises you cannot see yet. Our concrete calculator prices the footing concrete, and our lumber calculator prices the framing boards.

Frequently asked questions
How much does a deck cost per square foot?
A new deck costs $25 to $50 per square foot installed on average, according to HomeGuide 2026. Pressure-treated pine runs about $35, cedar about $38, composite about $55, and hardwood about $60 per square foot in this calculator.
How much does a 12 by 12 deck cost?
A 12 by 12 ft pressure-treated deck costs about $5,544 with a 10% contingency and no railing. The same deck in composite costs about $8,712 before railing, and railing adds $1,680 before contingency.
How much does a composite deck cost?
A composite deck costs about $55 per square foot installed in this calculator. A 16 by 12 ft composite deck comes to $10,560 for the surface, or $13,772 with railing and a 10% contingency.
Does a deck add value to my home?
A well built deck usually recovers part of its cost at resale, and a simple wood deck often recovers more of its cost than a high end composite deck. The exact return depends on your home, your neighborhood and the quality of the work.
How long does a deck last?
A pressure-treated wood deck lasts about 15 years with regular staining and sealing, while cedar lasts a little longer. Composite decking lasts 25 to 30 years with almost no upkeep, and hardwood can last longer still.
Do I need a permit to build a deck?
Most towns require a permit for an attached or elevated deck, and a deck permit typically costs $230 to $500. A low freestanding deck may not need one, so check the local rules before you build.
This is an estimate for planning only, and actual prices vary by material, labor, site and area, so get at least three itemized bids before you set a budget.
Related calculators
Deck Calculator
Estimate decking boards and joists for a deck.
Use calculatorFlooring Calculator
Estimate flooring by room size and material.
Use calculatorConcrete Calculator
Work out how much concrete a slab or footing needs.
Use calculatorLumber Calculator
Estimate lumber boards for a framing job.
Use calculatorPaint Calculator
Estimate paint and primer for walls and rooms.
Use calculatorKitchen Remodel Cost Calculator
Estimate a kitchen remodel by size and finish level.
Use calculator