This deck & fence stain calculator works out the gallons of stain to buy for your deck size โ or your fence length and height โ by coats and coverage. No sign-up. The working is shown under every number.
Quick example: a 16 ร 12 ft deck with 2 coats of stain at 200 sq ft per gallon coverage needs 2 gallons โ $76.00 at the example prices.

| Item | Buy | Cost |
|---|---|---|
| Estimated total | $0.00 |
Gallons are rounded up to whole gallons. Keep the part-used gallon for touch-ups โ stain colour varies slightly between batches, so buy all you need in one trip.
Estimate only โ not a guarantee. Mistakes are possible, so always check the quantities with your supplier or a builder before you buy or build.
Stain is bought by area, so measure the area the way the wood presents it. A deck floor is easy: length ร width. Then add the parts that drink stain quietly: railings, which this calculator counts at 3 sq ft per foot of railing (posts, top rail and balusters together โ a fair average for a standard railing), and steps at 4 sq ft each. A long railing run around three sides of a deck can add half as much area again, and it is the line most often missing from a first estimate. For a fence, the area is length ร height ร the number of sides โ and "sides" is where fence budgets double: a 100 ft fence stained on both faces is not a 600 sq ft job, it is a 1,200 sq ft one. If the fence is board-on-board or shadowbox, the overlaps expose more wood than the flat measurement suggests; count it as flat, then choose the lower coverage figure below to compensate. Measure a gate as fence โ it is.
Gallons = area ร coats รท coverage per gallon. Everything hangs on the coverage, and it is not a constant: manufacturers quote roughly 150โ300 sq ft per gallon across products. Smooth, new, previously coated wood sits at the generous end; rough-sawn, dry, grey and weathered wood can drag coverage toward 125โ175 sq ft per gallon, and a thirsty first coat always drinks more than the second. This calculator starts at 200 โ a sensible middle. Drop it to 150 for an old fence that has never been stained, raise it toward 250 for smooth new decking, and let the gallon count follow. Stain is rounded up to whole gallons, because that is how it is sold and because a part-gallon shortage mid-fence means a second batch โ and batches vary in color.
Floor = 252 sq ft. Add 36 ft of railing ร 3 = 108 sq ft, and 4 steps ร 4 = 16 sq ft: total area 376 sq ft. Two coats at 200 sq ft per gallon: 376 ร 2 รท 200 = 3.76 gallons, rounded up to 4 gallons to buy โ $152.00 at the example $38 a gallon. Watch what the coverage setting does to the same deck: at 150 sq ft per gallon (weathered wood) the exact figure becomes 5.01 gallons and the list says 6; at 250 it is 3.01, and the list says 4. Same deck, same coats โ the wood's thirst is worth two gallons, which is why this page asks you for the coverage instead of hiding it.
Buy the whole job in one trip and keep the part-used gallon, sealed and labeled with the product and color, for touch-ups โ stain colors drift between batches and between years, and a touch-up from the same tin is invisible while a new tin is not. Quarts exist for a reason: if the calculator says 4.1 gallons, four gallons plus a quart beats five gallons on price and on storage. Finally, check the tin's own coverage figure against the setting you used here; if they disagree, believe the tin for that product and re-run the numbers โ thirty seconds in the calculator beats a second trip with a half-stained fence behind you.
Read next: Planning a deck project, step by step โ staining is the last step of a deck build, not the first โ the full sequence, including when new wood is ready for stain.
Work out the fence area first: length ร height ร the number of sides you are staining. A 100 ft long, 6 ft high fence stained on both sides is 1,200 sq ft; at the standard 200 sq ft per gallon coverage that is 6 gallons for one coat โ the same figure published fence-stain examples give. This calculator does the area for you in fence mode.
The floor of a 16 ร 12 ft deck is 192 sq ft. At 200 sq ft per gallon, one coat takes about 1 gallon and the usual two-coat job takes 2 gallons (1.92 worked out exactly, rounded up to whole gallons). Railings and steps add area โ the calculator adds about 3 sq ft for every foot of railing and 4 sq ft per step if you enter them.
Manufacturers quote anywhere from about 150 to 300 sq ft per gallon. Smooth new wood drinks the least; rough, dry or weathered wood can pull coverage down toward 125โ175 sq ft per gallon, and a first coat always drinks more than a second. This calculator starts at 200 sq ft per gallon โ lower it toward 150 for old weathered wood so you do not run short mid-fence.
Two thin coats is the standard recommendation for decks and fences: the first seals the wood, the second evens the colour and adds the weather protection. One coat can look patchy within a season. Very weathered wood sometimes needs a third light coat on the worst boards โ the calculator lets you set 1, 2 or 3 coats.
| Deck job | Area | Stain (exact) | Gallons to buy | Total |
|---|---|---|---|---|
| 12 ร 12 ft deck | 144 sq ft | 1.44 gal | 2 | $76.00 |
| 16 ร 12 ft deck | 192 sq ft | 1.92 gal | 2 | $76.00 |
| 16 ร 12 ft deck + 24 ft of railing | 264 sq ft | 2.64 gal | 3 | $114.00 |
| 20 ร 16 ft deck | 320 sq ft | 3.20 gal | 4 | $152.00 |
Railing area is counted at 3 sq ft per foot of railing (posts, rails and balusters together) and steps at 4 sq ft each. Gallons are rounded up to whole gallons โ stain is normally sold by the gallon (and quart for touch-ups).
These figures are planning estimates only โ not a guarantee and not professional advice. Mistakes are possible, including through an error in this calculator. Always check the quantities, sizes, spacings and depths with your supplier, a licensed builder, and your local building code before you buy materials or start work. The owner of this site accepts no responsibility or liability for any loss, cost, damage, injury, wasted material or failed inspection that results from using these estimates. Prices are examples to start from, not live prices or quotes.