The formula
Gallons = area × coats ÷ coverage a coat, plus waste. A deck's area is its length × width, plus railings and steps; a fence's is length × height × the sides you stain. Coverage is on the can: semi-transparent stain covers about 150 to 300 sq ft a gallon a coat on smooth boards, about half that on rough sawn wood.