Raised Garden Bed Lumber Calculator
An 8 × 4 ft bed, two courses of 2×6, takes 6 boards of 2×6×8 ft plus one 4×4×8 ft post — cut 4 at 96 in and 4 at 45 in, stands 11 in tall and holds about 26.3 cu ft of soil. Enter your bed size below for the full cut list.
Long sides run the full outside length; short sides fit between them, so each short piece is the width minus 3 in — two 1.5 in board thicknesses. Board sizes are nominal: a 2x6 is really 1.5 x 5.5 in (NIST PS 20-20), and the bed height uses the real width. The packing allows 1/8 in of kerf per cut. Estimates only: confirm quantities with your lumber yard before ordering.
Lumber only. This page prices the frame — boards, posts and screws — and the soil to fill it. For the soil fill on its own, use the Raised Bed Soil Calculator.
How the raised garden bed lumber calculator works
The frame is built from the outside dimensions: long sides run the full outside length, short sides fit between them. On the default — an 8 by 4 foot bed, 2x6 boards, 2 courses, 8-foot stock — the long pieces are 2 per course at 8 x 12 = 96 in, so 4 at 96 in; the short pieces are 2 per course at 4 x 12 - 3 = 45 in, so 4 at 45 in; 8 pieces in total. Height is courses times the real board width: 2 x 5.5 = 11 in. Corner posts are 4, one per corner, cut to the bed height: floor(96 / 11) = 8 posts fit in one 8-foot 4x4, so a single 4x4x8 ft post covers all four corners. Screws are pieces times 4 (2 per board end): 8 x 4 = 32. Soil uses the inside dimensions — 93 x 45 in, less the four 3.5 x 3.5 in posts — times the 11 in height: (93 x 45 x 11 - 4 x 3.5 x 3.5 x 11) / 1728 = 26.3 cu ft, or 0.98 cu yd, 18 bags of 1.5 cu ft.
The worked example is the calcwall one, and it shows why longer stock can be the better buy. The same 8 by 4 foot bed cut from 12-foot boards takes 4 boards instead of 6: each 12-foot board takes one 96-in long piece plus one 45-in short piece (96 + 1/8 + 45 = 141 1/8 in, inside 144 in), so 4 boards cover all 8 pieces. Both options use 48 lin ft of lumber — 4 x 96 + 4 x 45 = 564 in of pieces against 576 in of stock, 97.9% used — but the 12-foot buy means 2 fewer boards to haul and fewer offcuts to store.
The cross-check is the linear-feet check, and it agrees with the packing to the inch. Total lumber is 4 x 96 + 4 x 45 = 564 in, or 47 lin ft; 6 boards of 8 ft give 48 lin ft, so exactly 1 ft is spare and the 97.9% used figure checks. The soil checks too: inside dimensions 93 x 45 in at 11 in high give 26.6 cu ft before the posts and 26.3 cu ft after them — the posts take only 0.3 cu ft, so rounding the soil order up to 27 cu ft (1 cu yd) is safe and covers settling.
Measure the outside length and width of the bed you want — the frame is sized from the outside, not the planting area. Board size is nominal, not real: a 2x6 is really 1.5 x 5.5 in (NIST PS 20-20), a 2x8 is 1.5 x 7.25 in, a 2x10 is 1.5 x 9.25 in and a 2x12 is 1.5 x 11.25 in, and the bed height uses the real width. Courses are how many boards high the bed stands. Stock length is what your yard sells — the table shows every stock length from 8 to 16 ft so you can pick the buy with the least waste. The 1/8 in kerf per cut is already in the packing.
Common mistakes: using the nominal 6 in for the height — a 2-course bed of 2x6 stands 11 in, not 12; cutting the short sides to the full width instead of the width minus 3 in (two board thicknesses), which leaves the corners proud by an inch and a half; forgetting corner posts, which matter most on beds longer than 6 ft or taller than about 18 in — OSU Extension recommends reinforcement there; and ordering the exact soil volume instead of rounding up a bag, when soil settles after the first watering.
long pieces = 2 per course x length (in) · short pieces = 2 per course x (width x 12 - 3 in) · total pieces = 4 x courses · height = courses x real board width (2x6 5.5 in / 2x8 7.25 in / 2x10 9.25 in / 2x12 11.25 in) · posts = 4 corners, cut from 8-ft 4x4 (floor(96 / height) per post) · screws = pieces x 4 · soil = (inside length x inside width x height - 4 x 3.5 x 3.5 x height) / 1728 cu ft
Related tools
Price the soil fill on its own with the Raised Bed Soil Calculator, space the plants with the Plant Spacing Calculator, feed the bed with the Compost Calculator, mulch it with the Mulch Calculator, and water it with the Drip Irrigation Calculator.
Raised garden bed lumber calculator FAQ
How many boards do I need for a 4x8 raised bed?
6 boards of 2x6x8 ft for 2 courses — 4 cut at 96 in and 4 at 45 in — or 4 boards of 2x6x12 ft. Both use 48 lin ft; the 12-ft boards waste less.
What is the real size of a 2x6?
1.5 x 5.5 in. Nominal lumber sizes are larger than the real, planed size (NIST PS 20-20): a 2x8 is 1.5 x 7.25 in, a 2x10 is 1.5 x 9.25 in, and a 2x12 is 1.5 x 11.25 in.
How tall will my raised bed be?
Courses x real board width: 2 courses of 2x6 stand 11 in tall, 3 courses stand 16.5 in. The height uses the real width, not the nominal 6 in.
How much soil does a raised bed hold?
About 26.3 cu ft (0.98 cu yd, 18 bags of 1.5 cu ft) for the default 8x4 ft bed at 11 in tall — inside dimensions, less the corner posts.
Do I need corner posts?
Yes — 4 posts, one per corner, cut to the bed height. On the default bed one 4x4x8 ft post covers all four corners, since 8 posts of 11 in fit in 96 in.
How many screws does a raised bed need?
32 on the default bed — 2 per board end x 8 pieces. Use 3-in exterior screws so they bite through the 1.5-in board into the post.
Cedar or treated pine for a raised bed?
Cedar is naturally rot-resistant and lasts roughly 10–15 years untreated, and it is the usual pick for food beds. Modern pressure-treated pine is rated for ground contact and lasts as long or longer, but some growers avoid treated wood for edibles — check your local guidance before choosing.