★ CONSTRUCTION · GARDEN · RAISED BEDS

Raised Bed Calculator: 40 Bags of Soil for 12x4 ft Bed

On the defaults — a 12 ft by 4 ft raised bed, 18 in deep, 10% waste — you need 40 bags of soil. This is the raised bed tool: measure the bed once, turn the depth into feet once, and order the soil once — a bed filled short of the top waits for no second delivery.

2426

Raised bed calculator

Put your raised bed length, width, soil depth and waste in: a 12 ft by 4 ft bed at 18 in deep is 72 cu ft of soil — 36 bags exact, 40 bags with 10% waste.

How long the raised bed is in feet — 12 ft on the defaults, a bed long enough for two rows of vegetables with room to reach the middle from either side. Length moves the bed area directly, and with the width and depth it sets the whole soil order.

How wide the raised bed is in feet — 4 ft on the defaults, wide enough to reach the middle from either side without stepping on the soil. Width moves the bed area exactly like length does, so a foot added to either side costs the same soil.

How deep the soil in the bed is in inches — 18 in on the defaults, deep enough for most vegetables to root properly. Depth is the multiplier people forget: a bed twice as deep needs twice the soil on the same footprint.

How much extra soil to allow for spillage, settling and uneven filling, as a percentage — 10% on the defaults. Soil settles after watering, so the order is the exact count plus this allowance, rounded up.

Raised bed soil (12 ft × 4 ft bed, 18 in deep, 10% waste)Raised bed soil needed 40 bags (12 ft × 4 ft bed, 18 in deep, 72 cu ft, 2.67 cu yd, 36 bags exact, 10% waste).Bed area 12 × 4 = 48 sq ft; soil depth 18 ÷ 12 = 1.5 ft; volume 48 × 1.5 = 72 cu ft; cubic yards 72 ÷ 27 = 2.67; bags 72 ÷ 2 = 36 exact; with 10% waste = 40 bags to buy. Keep the bag size, since the bag on the pallet settles the next order, not the plan.

Raised bed length: 12 ft

Raised bed width: 4 ft

Soil depth: 18 in

Waste: 10 %

Bed area: 48 sq ft

Soil volume: 72 cu ft

Soil volume: 2.67 cu yd

Bags exact: 36 bags

Bags to buy: 40 bags

16 ft long, same width, depth and waste: Raised bed soil needed 53 bags (16 ft × 4 ft bed, 18 in deep, 96 cu ft, 3.56 cu yd, 48 bags exact, 10% waste).

6 ft wide, same length, depth and waste: Raised bed soil needed 60 bags (12 ft × 6 ft bed, 18 in deep, 108 cu ft, 4 cu yd, 54 bags exact, 10% waste).

12 in deep, same bed and waste: Raised bed soil needed 27 bags (12 ft × 4 ft bed, 12 in deep, 48 cu ft, 1.78 cu yd, 24 bags exact, 10% waste).

5% waste, same bed and depth: Raised bed soil needed 38 bags (12 ft × 4 ft bed, 18 in deep, 72 cu ft, 2.67 cu yd, 36 bags exact, 5% waste).

Length behind 40 bags: 12 ft

At the star the figures are: Raised bed soil needed 40 bags (12 ft × 4 ft bed, 18 in deep, 72 cu ft, 2.67 cu yd, 36 bags exact, 10% waste).

At the lower neighbor the figures are: Raised bed soil needed 33 bags (10 ft × 4 ft bed, 18 in deep, 60 cu ft, 2.22 cu yd, 30 bags exact, 10% waste).

At the upper neighbor the figures are: Raised bed soil needed 47 bags (14 ft × 4 ft bed, 18 in deep, 84 cu ft, 3.11 cu yd, 42 bags exact, 10% waste).

Reverse verdict: STEP

Depth behind 40 bags: 18 in

At the star the figures are: Raised bed soil needed 40 bags (12 ft × 4 ft bed, 18 in deep, 72 cu ft, 2.67 cu yd, 36 bags exact, 10% waste).

At the lower neighbor the figures are: Raised bed soil needed 27 bags (12 ft × 4 ft bed, 12 in deep, 48 cu ft, 1.78 cu yd, 24 bags exact, 10% waste).

At the upper neighbor the figures are: Raised bed soil needed 53 bags (12 ft × 4 ft bed, 24 in deep, 96 cu ft, 3.56 cu yd, 48 bags exact, 10% waste).

Reverse verdict: STEP

Waste behind 40 bags: 10%

At the star the figures are: Raised bed soil needed 40 bags (12 ft × 4 ft bed, 18 in deep, 72 cu ft, 2.67 cu yd, 36 bags exact, 10% waste).

At the lower neighbor the figures are: Raised bed soil needed 38 bags (12 ft × 4 ft bed, 18 in deep, 72 cu ft, 2.67 cu yd, 36 bags exact, 5% waste).

At the upper neighbor the figures are: Raised bed soil needed 42 bags (12 ft × 4 ft bed, 18 in deep, 72 cu ft, 2.67 cu yd, 36 bags exact, 15% waste).

Reverse verdict: STEP

No length at all: Raised bed soil needed 0 bags (0 ft × 4 ft bed, 18 in deep, 0 cu ft, 0 cu yd, 0 bags exact, 10% waste).

Negative length: Length — 0 ft or more.

Negative width: Width — 0 ft or more.

No soil depth at all: Raised bed soil needed 0 bags (12 ft × 4 ft bed, 0 in deep, 0 cu ft, 0 cu yd, 0 bags exact, 10% waste).

Negative soil depth: Soil depth — 0 in or more.

No waste at all: Raised bed soil needed 36 bags (12 ft × 4 ft bed, 18 in deep, 72 cu ft, 2.67 cu yd, 36 bags exact, 0% waste).

Raised bed soil needed 40 bags (12 ft × 4 ft bed, 18 in deep, 72 cu ft, 2.67 cu yd, 36 bags exact, 10% waste).

16 ft long, same width, depth and waste: Raised bed soil needed 53 bags (16 ft × 4 ft bed, 18 in deep, 96 cu ft, 3.56 cu yd, 48 bags exact, 10% waste).

6 ft wide, same length, depth and waste: Raised bed soil needed 60 bags (12 ft × 6 ft bed, 18 in deep, 108 cu ft, 4 cu yd, 54 bags exact, 10% waste).

12 in deep, same bed and waste: Raised bed soil needed 27 bags (12 ft × 4 ft bed, 12 in deep, 48 cu ft, 1.78 cu yd, 24 bags exact, 10% waste).

5% waste, same bed and depth: Raised bed soil needed 38 bags (12 ft × 4 ft bed, 18 in deep, 72 cu ft, 2.67 cu yd, 36 bags exact, 5% waste).

Reverse: Length behind 40 bags: 12 ft — at 12 ft the figures are Raised bed soil needed 40 bags (12 ft × 4 ft bed, 18 in deep, 72 cu ft, 2.67 cu yd, 36 bags exact, 10% waste)..; at the lower neighbor the figures are Raised bed soil needed 33 bags (10 ft × 4 ft bed, 18 in deep, 60 cu ft, 2.22 cu yd, 30 bags exact, 10% waste)..; at the upper neighbor the figures are Raised bed soil needed 47 bags (14 ft × 4 ft bed, 18 in deep, 84 cu ft, 3.11 cu yd, 42 bags exact, 10% waste).. — verdict: STEP. Reverse: Depth behind 40 bags: 18 in — at 18 in the figures are Raised bed soil needed 40 bags (12 ft × 4 ft bed, 18 in deep, 72 cu ft, 2.67 cu yd, 36 bags exact, 10% waste)..; at the lower neighbor the figures are Raised bed soil needed 27 bags (12 ft × 4 ft bed, 12 in deep, 48 cu ft, 1.78 cu yd, 24 bags exact, 10% waste)..; at the upper neighbor the figures are Raised bed soil needed 53 bags (12 ft × 4 ft bed, 24 in deep, 96 cu ft, 3.56 cu yd, 48 bags exact, 10% waste).. — verdict: STEP. Reverse: Waste behind 40 bags: 10% — at 10% the figures are Raised bed soil needed 40 bags (12 ft × 4 ft bed, 18 in deep, 72 cu ft, 2.67 cu yd, 36 bags exact, 10% waste)..; at the lower neighbor the figures are Raised bed soil needed 38 bags (12 ft × 4 ft bed, 18 in deep, 72 cu ft, 2.67 cu yd, 36 bags exact, 5% waste)..; at the upper neighbor the figures are Raised bed soil needed 42 bags (12 ft × 4 ft bed, 18 in deep, 72 cu ft, 2.67 cu yd, 36 bags exact, 15% waste).. — verdict: STEP.

Edges: No length at all gives Raised bed soil needed 0 bags (0 ft × 4 ft bed, 18 in deep, 0 cu ft, 0 cu yd, 0 bags exact, 10% waste).. Negative length gives Length — 0 ft or more.. Negative width gives Width — 0 ft or more.. No soil depth at all gives Raised bed soil needed 0 bags (12 ft × 4 ft bed, 0 in deep, 0 cu ft, 0 cu yd, 0 bags exact, 10% waste).. Negative soil depth gives Soil depth — 0 in or more.. No waste at all gives Raised bed soil needed 36 bags (12 ft × 4 ft bed, 18 in deep, 72 cu ft, 2.67 cu yd, 36 bags exact, 0% waste)..

Embed this calculator

What does raised bed soil needed 40 bags mean?

It means forty bags fill a 12 ft by 4 ft raised bed 18 in deep, with room for spillage and settling. The bed itself is 48 square feet, since 12 times 4 is 48; the soil depth is 1.5 feet, since 18 divided by 12 is 1.5; the volume is 72 cubic feet, since 48 times 1.5 is 72; in cubic yards that is 2.67, since 72 divided by 27 is 2.67; one 2 cu ft bag holds 2 cubic feet, so the exact need is 36 bags, and with 10% waste for spillage and settling that becomes 39.6, rounded up to 40 whole bags because bags are sold by the bag, not by the fraction.

Output · formula · meaning

OutputFormulaWhat it means
Bed arealength × width48 sq ft — 12 × 4.
Soil volumearea × depth in feet72 cu ft — 48 × 1.5.
Cubic yardsvolume ÷ 272.67 cu yd — 72 ÷ 27.
Bagsvolume ÷ 2, plus waste, rounded up40 bags — 36 × 1.10, rounded up.

Three things to check before you trust the number

First, check the bag size you are actually buying: 2 cu ft is the common bag, but a smaller bag holds less soil each and raises this bed past 40 bags, while the soil volume never changes. Second, check the depth honestly: 18 in is a deep bed, and a bed filled only 12 in deep needs 27 bags, not 40, on the same footprint — depth is the figure most often guessed. Third, remember the soil settles: a bed filled level settles after the first watering, so keep a spare bag for topping up rather than buying the exact count. Paths, edging and a drainage layer are counted separately — see the garden bed calculator for a smaller bed filled the same way.

Worked example

12 ft long, 4 ft wide, 18 in deep, 10% waste. Bed area: 12 × 4 = 48 sq ft. Depth in feet: 18 ÷ 12 = 1.5 ft. Volume: 48 × 1.5 = 72 cu ft. Cubic yards: 72 ÷ 27 = 2.67. Bags exact: 72 ÷ 2 = 36. With waste: 36 × 1.10 = 39.6, rounded up to 40 bags. In practice that means buying 40 bags, and expecting the last bag to go on spillage and the first settling. If the same bed were 16 ft long instead, the need would rise to 53 bags, but the depth would be unchanged.

Every branch, checked

With a 16 ft long bed instead of 12 ft, the volume rises to 96 cu ft and the need to 53 bags. With a 6 ft wide bed, the volume rises to 108 cu ft and the need to 60 bags, since the bed area grows with the width. With 12 in of soil instead of 18 in, the volume falls to 48 cu ft and the need to 27 bags. With 5% waste, the exact need stays 36 bags but the buy falls to 38 bags, since 36 × 1.05 is 37.8 and still rounds up to 38. Length, width, depth and waste each move the order on their own, so a wrong depth figure is as costly as a wrong measurement.

The reverses, worked backwards

The length behind 40 bags is 12 ft: at 10 ft the need is 33 bags (10 ft × 4 ft bed, 18 in deep, 60 cu ft, 2.22 cu yd, 30 bags exact, 10% waste); at 14 ft it is 47 bags (14 ft × 4 ft bed, 18 in deep, 84 cu ft, 3.11 cu yd, 42 bags exact, 10% waste). The depth behind 40 bags is 18 in: at 12 in the need is 27 bags (12 ft × 4 ft bed, 12 in deep, 48 cu ft, 1.78 cu yd, 24 bags exact, 10% waste); at 24 in it is 53 bags (12 ft × 4 ft bed, 24 in deep, 96 cu ft, 3.56 cu yd, 48 bags exact, 10% waste). The waste behind 40 bags is 10%: at 5% the need is 38 bags (12 ft × 4 ft bed, 18 in deep, 72 cu ft, 2.67 cu yd, 36 bags exact, 5% waste); at 15% it is 42 bags (12 ft × 4 ft bed, 18 in deep, 72 cu ft, 2.67 cu yd, 36 bags exact, 15% waste). Each reverse moves one input and holds the rest, so the step is exactly one dimension, depth or waste change.

What the defaults assume

The defaults assume a 12 ft by 4 ft rectangular raised bed, 18 in of soil, 2 cu ft bags, and 10% waste for spillage and settling. They do not assume paths, edging, a drainage layer or a second soil type — a bed filled with a topsoil-and-compost mix counts its mix by the same volume, but the bags are bought by the mix, not by the bed.

Who uses this

Accuracy & limitations

The arithmetic is exact for the inputs entered; the judgement is the depth and the bag size. Real beds settle, bags vary, and the bag on the pallet overrides any planning figure; a bed measured gross over-orders, and a depth figure read off the frame instead of the soil under-orders a bed filled shallow. Treat 40 bags as the planning order for a 12 ft by 4 ft bed at 18 in deep and 10% waste, and buy bulk by the cubic yard — 2.67 cu yd here — once the order passes about 3 cu yd, since bulk beats bags past that point.

Cite this calculator

Bright Side Kit, “Raised Bed Calculator: 40 Bags of Soil for 12x4 ft Bed”, https://brightoolbox.com/raised-bed-calculator/, accessed 3 November 2026. Students and researchers: cite the calculator name, the page URL and the date you used it, and quote the defaults (12 ft × 4 ft bed, 18 in deep, 10% waste) so the 40-bag result can be checked.

Frequently asked questions

How many bags of soil do I need for a 12x4 ft raised bed at 18 in deep?

40 bags at 10% waste. The volume is 72 cu ft; at 2 cu ft per bag that is 36 bags exact, and 36 × 1.10 = 39.6, rounded up to 40.

How do I convert cubic feet to cubic yards?

Divide by 27: 72 cu ft is 2.67 cu yd. Bulk soil is sold by the cubic yard, bags by the cubic foot, so this step settles which price to compare.

What if my bags are 1.5 cu ft, not 2 cu ft?

Divide the volume by the bag size instead: 72 ÷ 1.5 = 48 bags exact, and 48 × 1.10 = 52.8, rounded up to 53 bags. This calculator counts 2 cu ft bags, so a smaller bag raises the order.

Should I allow for the soil settling?

Yes — a bed filled level settles after the first watering. The 10% waste covers spillage and the first settling; keep one bag back for topping up a week later.

Does depth matter more than bed size?

Both multiply: doubling the depth doubles the soil, and doubling the area doubles it too. A deep bed on a small footprint can need more soil than a shallow bed on a large one.

When should I buy bulk soil instead of bags?

Past about 3 cu yd, bulk usually wins: this bed is 2.67 cu yd, so bags are still reasonable, but a second bed the same size takes the order past 5 cu yd and into bulk territory.