Deck Stain Calculator
Estimate the stain a deck needs from its floor, railing and steps.
Metric or imperial sizes, optional railing and steps, and your own coverage factor.
Updated October 29, 2026
Overview
Stain is sold by the gallon and spread over square metres, so the job starts with one question: how much surface are you actually coating? On a deck the answer is rarely just the floor. The boards take stain, so do the railing around them and the steps down to the garden, and on a small balcony the railing can easily outweigh the floor it stands on.
What comes back
- The floor area, from two dimensions or typed straight off a plan.
- The total deck area: the floor plus whichever of railing and steps you chose to include.
- The stain to buy, in US gallons or litres, at the number of coats you plan to apply.
- On request, the area of each element — railing frame, balusters, steps — so you can see where the total came from.
The order of the work is the order of the page: floor, railing, steps, then the amount of stain. Each surface can be described in the detail you actually have. A railing can be estimated from its run, height and posts, or replaced by an area a painter already measured for you. A floor can be entered as two sides, or as an area plus one side, and the third figure is solved from the other two — with only the area, the totals still work and the sides simply stay empty.
People reach for this before a stain order, but it is just as useful when comparing a one-coat refresh with a two-coat job, or when deciding whether a railing is worth staining at all rather than replacing it. If the deck itself has not been built yet, the decking calculator works out the boards, screws and clips for the same footprint; this page takes over once there is timber to coat.
How to use this calculator
Four decisions carry the whole estimate: the floor, the railing, the steps, and the rate at which your stain covers.
Measure the floor
Enter the length and width of the walking surface, edge to edge over the boards. If a plan quotes the area and you also know one side, enter both and the other side is solved. With only the area, the total deck area and the stain still work, and the two sides stay empty. Underneath the boards there is usually nothing to stain, so the plan area is the right measure for the floor.
Say how the railing is stained
No railing leaves it out entirely. With railing estimates the surface from the total run, the height to the top rail and the width of a post, then asks whether the balusters are being stained too. Custom takes a railing area you already know.
A glass, cable or metal-panel railing is almost all frame, so leave the filling off. A timber railing with balusters needs the filling on, otherwise you will under-buy: the balusters alone can add as much surface as the frame.
Add the steps, if they are being stained
Give the number of steps and the width of the flight. Every step contributes its tread plus its riser, using a standard 15 cm rise and 28 cm run. Leave the steps out when only the deck boards are being coated, or when the stairs are a different material.
Set the coats, then check the coverage rate
One coat and 175 ft² per US gallon are pre-filled. The number of coats is a real decision, not a formality, and the coverage rate should come off the can you are buying — see the inputs that move the answer. The moment the last box it needs is filled, the total deck area and the stain appear.
One deck, end to end
A 5 m × 4 m deck with 10 m of railing, 0.9 m high, timber balusters, and a three-step flight 1.2 m wide. The posts are the pre-filled 15.24 cm, the balusters are 5 cm square at 6.5 per metre, the stain covers 175 ft² per gallon and one coat is planned.
Floor, railing with balusters, steps
Stain at one coat
2.67 gallons is a quantity, not a package. Three one-gallon cans cover this deck with a little to spare for the cut ends and the second pass along the rails. A five-gallon pail only makes sense if something else on the property wants the rest of it.
How the deck area is built
Every surface ends up as an area in the same unit, the areas are added into one deck area, and that total is divided once by the coverage rate. The floor is the simple part:
In the formulas that follow, and are the two sides of the floor, is the measured run of railing, is the railing height, and are the widths of a post face and a baluster face, is the baluster density in pieces per metre, is the filling switch (0 or 1), is the number of steps, the width of the flight, the number of coats, and the coverage rate — square metres per US gallon, which is 16.258032 m² for the 175 ft² default.
The railing is where estimates usually go wrong. What takes stain is not the run of the railing but the faces of everything that makes it: four faces of every post, the top and bottom rails, and — when they are included — four faces of every baluster.
How many posts the run carries
Posts, rails, and the frame they make
Balusters, with the posts taken back out
Railing total, with the filling switch
The posts are subtracted from the baluster count because the density is spread along the whole run, post positions included. Without that subtraction the model would count a baluster everywhere a post stands and quietly over-buy.
What a 10 m railing really adds
| Element | Surface | Why |
|---|---|---|
| Railing seen edge-on | 9 m² | 10 m run × 0.9 m high |
| Posts and rails | 11.128 m² | Four faces per post, plus the rail outline |
| Balusters | 10.7157 m² | 65 balusters at 6.5 per metre, less the 5.47 posts, 5 cm square |
| Railing that takes stain | 21.8437 m² | 2.4 times the line you see from the garden |
That is why the railing boxes are worth filling properly. Treating the railing as the panel you see edge-on — run × height, 9 m² here — would put less than half the real surface into the total and leave you about four-fifths of a gallon short on this deck.
The steps and the total
Steps
Total deck area
Stain at the chosen number of coats
The fixed geometry behind the railing and step estimates
- Posts are counted at one every 6 ft, or 1.8288 m. This is an averaging assumption for the surface, not a statement about how your railing should be built.
- The rails are taken as a 2 in top rail plus a 6 in bottom rail, an 8 in outline, or 0.2032 m, running the whole length.
- Each step is a 15 cm rise plus a 28 cm run, 0.43 m of profile, multiplied by the width of the flight.
- Balusters are treated as square section with four equal faces. A round baluster of the same width shows a perimeter of instead of , about 21% less surface, so use Custom if your railing is mostly turned or round balusters.
- The post count is a division, so a run that is not a whole number of spans carries a fraction of a post in the average — 10 m is 5.47 posts at 1.8288 m spacing.
Because every box belongs to the same set of relationships, an area you already know can stand in for a dimension you do not. Type the floor area from a drawing together with one side, and the other side is solved; type the measured railing area under Custom and the geometry boxes bow out of the calculation altogether.
If the balusters still have to be cut and spaced, the baluster calculator turns a run and a gap into a piece count. The density this page asks for is that same decision expressed per metre.
The inputs that move the answer
Two of the boxes are numbers you choose rather than measure, and they swing the answer further than any other input.
The coverage rate belongs to your can
175 ft² per gallon is a starting figure, not a property of stain. A semi-transparent product on smooth cedar can claim far more; a solid colour on rough, weathered pine covers much less. Read the rate off the can you are holding and change the box — a swing from 175 to 250 ft² per gallon takes this deck from 2.67 gallons to 1.87.
Every coat is a full pass
The area is multiplied by the number of coats before the division, so a two-coat job asks for twice the stain of a one-coat job on the same deck: 2.29 gallons becomes 4.57 for a 400 ft² floor. The second coat usually drinks a little less than the first, but not enough to order one can short.
Measure the run, not the deck
A deck open on three sides has railing on three sides, and the run is longer than the deck is wide. Walk the rail with a tape and add the sections up; a rail that steps down to a lower level is still part of the run if it is being stained. Height is taken to the top of the top rail.
Density is spacing in disguise
A density of 6.5 balusters per metre is one every 15 cm. Count the balusters in one bay, divide by the bay length, and you have the number for the whole run. Below about 0.55 per metre the count falls under the post count and the baluster area goes negative — the box flags it rather than quietly under-buying.
The coats and the coverage rate compound. A two-coat job on a thirsty surface can need nearly three times what a single coat of a high-coverage product would, so fix both before you compare prices per gallon.
Three decks worked through
The three cases below are deliberately different shapes of job: a large bare floor, a deck with a railing area someone else measured, and a small deck with stairs.
A 20 ft × 20 ft floor, one coat and two
Metric and imperial entry, no railing, no steps
The floor is entered in feet, and the area comes back as 37.16 m² by default — 400 ft² in the unit you typed.
One coat
Two coats double it to 4.57 gallons. At 175 ft² per gallon a five-gallon pail holds 875 ft² of single-coat coverage, so it covers this deck twice with a little left over — a sensible buy here, and a waste on a deck half this size.
A 6 m × 4 m deck with a measured railing
Custom railing area instead of geometry
The floor is 24 m². A painter has already measured the railing surface at 9.5 m², so there is no reason to estimate it again from the run and the posts.
Two gallons hold 32.5 m² of coverage at this rate and the deck is 33.5 m², so the honest purchase is three cans. This is also the route for a railing the geometry boxes cannot describe well: glass panels, metal posts, turned balusters or a manufacturer’s quoted surface.
A 4 m × 3 m deck with four steps
Small job, one can
A 12 m² floor with a four-step flight 1.5 m wide. The steps add .
One gallon covers it at one coat with ten per cent to spare. At two coats the figure is 1.79 gallons, which is the point at which a second can stops being optional.
What this estimate does not cover
- One rate for the whole job. The calculation assumes every square metre drinks the same amount. New, dry or weathered boards take more on the first coat than a deck that was sealed last year, and a spray gun loses some material to overspray where a brush puts it on the timber. Treat the answer as a minimum, and buy a margin on a first coat.
- Top surfaces only. The floor box is the plan area of the boards. Fascia, the deck skirt, joists, the underside and the stair stringers are not in the model; if they are part of your job, work their area out separately and add it to what you buy.
- Fixed railing and step geometry. Posts every 1.83 m, an 8 in rail outline and a 15 cm rise with a 28 cm run are averages, not your drawing. A railing with heavy 6 × 6 posts and doubled rails has more surface than this estimates; a railing with 2 × 3 rails has less. Use Custom when the difference matters.
- Not a structural or code check. Post spacing, guard height and baluster gaps are set by the building code that applies where you live and by the products you install. This page only estimates the surface those parts present; the 6 ft post spacing is an averaging assumption for area, never a compliance test.
- Decks only. A fence shows pickets on both sides, siding is measured per elevation and furniture has edges and legs. Their areas do not transfer to this model, even though the arithmetic looks similar.
- A total needs a complete set of boxes. Choosing Custom without a measured railing area, or With railing without a run and a height, leaves the total and the stain blank on purpose: there is nothing yet to add up.
Related Calculators
Board Foot Calculator
Calculate board feet from lumber dimensions. Convert timber volume measurements across different unit systems.
Bolt Circle Calculator
Lay out a circular bolt pattern: turn the hole count, radius, first-hole angle and centre offset into an x and y coordinate for every hole.
Bowl Segment Calculator
Turn a segmented bowl's segment count, outer radius, wall thickness and allowances into cut-ready segment lengths, blank thickness and cutting angle.
Material Removal Rate Calculator
Work out how much material a machining pass removes per minute for turning, milling, grooving, drilling or grinding. Enter the cut geometry and the cutting speed, read the removal rate in ten flow units, or leave one box empty to solve back for it.
Beam Deflection Calculator
Find how far a simply supported or cantilever beam bends under a point load, a uniform load, a linearly varying load, a triangular load or an end moment. Enter the span, the load and the flexural rigidity, or the modulus of elasticity and area moment of inertia separately, and read the maximum deflection and where it occurs.
Square Yards Calculator
Multiply a length and a width into square yards and price the material. Seven length units, nine area units from square centimeters to acres, and twenty currencies converted at live exchange rates.