Material is the biggest choice. On a 240 square foot deck, pressure-treated wood costs $4,800, cedar costs $6,720 and composite costs $8,400, so the material alone moves the total by $3,600. Size is the second driver, and it works in a straight line, because every extra square foot adds the material rate again. Railing is the part people forget. At $65 a foot, 40 feet of railing adds $2,600, which is more than a fifth of the worked example total. Stairs add $750 a flight, and a deck with two flights adds $1,500. Height matters too. A low, ground-level deck needs no stairs and little or no railing, while a raised deck needs both, plus footings and a permit. Mobile home decks are usually low and freestanding, which keeps them near the low end of the range, but a deck attached to the home or raised above 30 inches usually needs a permit and an inspection. Our deck cost calculator prices a standard deck the same way, from area, material and extras to a total you can compare with a contractor quote.