Soil preparation is the least glamorous job in the vegetable garden and the one that matters most. A vegetable planted in well-prepared soil grows strongly, resists disease, and produces a generous harvest. The same vegetable planted in compacted, poor or waterlogged soil struggles all season, no matter how much you water and feed it. This guide covers vegetables soil preparation properly: how to test your soil, what pH each vegetable wants, how to improve clay and sandy soil, how to fix drainage, and how to prepare a bed before planting. The timings and ratings below use published ranges for common vegetables, which vary by variety, climate and soil. As with everything in this guide, check your local extension service for advice suited to your area.

The first thing to understand is that soil is alive. A teaspoon of healthy soil contains more living organisms than there are people on earth — bacteria, fungi, worms, and countless other creatures that break down organic matter, release nutrients, and build the crumbly structure that roots need. Soil preparation is mostly about feeding that life and protecting that structure: adding compost, avoiding compaction, and keeping the soil covered. Digging has its place, but it is not the whole job, and in many gardens the best preparation is compost on top and time.

Test first: pH and soil type

Vegetable Preferred soil pH Days to maturity Soil notes
Potatoes 5.0–6.0 70–120 Prefers acidic soil; scab is worse in alkaline soil
Sweet potatoes 5.5–6.5 90–120 Prefers slightly acidic soil
Tomatoes 6.0–6.8 60–85 Most vegetables sit in this range
Carrots 6.0–6.8 60–80 Needs loose, stone-free soil
Lettuce 6.0–7.0 45–60 Tolerates a wide range
Cucumbers 6.0–7.0 50–70 Rich, moist soil
Zucchini 6.0–7.5 45–55 Tolerates a wide range
Kale 6.0–7.5 50–65 Tolerates a wide range; hardy
Peas 6.0–7.5 60–70 Tolerates a wide range
Asparagus 6.5–7.5 730–1095 Prefers neutral to slightly alkaline soil
Most vegetables 6.0–7.0 Varies Slightly acidic to neutral suits almost everything

Most vegetables grow well in soil with a pH of 6.0–7.0, which is slightly acidic to neutral. Potatoes are the main exception: they prefer 5.0–6.0, and potato scab — the rough, corky patches on tubers — is worse in alkaline soil. Asparagus prefers 6.5–7.5, slightly alkaline. Test your soil before you try to change it: a simple test kit from a garden centre, or a laboratory test through your local extension service, tells you the pH and often the nutrient levels too. Do not guess — adding lime to soil that is already alkaline, or sulphur to soil that is already acidic, makes things worse. The soil pH testing guide explains how to test, and the acidic soil guide and the alkaline soil guide cover how to adjust pH safely.

To find your soil type, squeeze a handful of moist soil: clay soil sticks together in a smooth, shiny ball and stays in shape; sandy soil falls apart and feels gritty; loamy soil holds together loosely and crumbles when poked — and loam is what you are aiming for. Clay soil holds water and nutrients well but drains badly and compacts easily. Sandy soil drains fast and warms up early but dries out quickly and loses nutrients. Both are improved by the same thing: compost, in large amounts, every year.

Improving clay and sandy soil with compost

Compost is the single best soil improver for almost every soil, because it does several jobs at once: it opens up clay soil so it drains better, it helps sandy soil hold water and nutrients, it feeds soil life, and it releases nutrients slowly all season. Dig 2–3 inches of well-rotted compost into the top 6–8 inches of the bed before planting, and top-dress with another inch during the season. Well-rotted means dark, crumbly and sweet-smelling — fresh manure and unfinished compost can burn roots and carry weed seeds.

For heavy clay, add compost every year and avoid working the soil when it is wet, since wet clay compacts into bricks. Adding coarse grit or perlite helps drainage, but compost matters more than grit — and never add sand to clay soil, which can set like concrete. For sandy soil, add compost every year and mulch heavily, since sand loses organic matter fast. For both, keep the soil covered with mulch or a cover crop over winter, so rain does not wash nutrients away and the soil life stays active. The clay soil improvement guide, the sandy soil improvement guide, the composting basics guide and the cover crops for soil guide cover all of this in detail, and the soil compaction guide explains how to avoid the compaction that ruins good soil.

Drainage: the test and the fixes

Vegetables hate waterlogged soil. Roots need air as well as water, and roots sitting in waterlogged soil rot — which is why drainage is the first thing to fix in a wet garden. Test drainage with a simple hole test: dig a hole a foot deep and a foot wide, fill it with water, let it drain, fill it again, and time how long the second filling takes to drain. If it drains within a few hours, drainage is good. If water is still standing after a day, drainage is poor and needs fixing before you plant vegetables.

The fixes, in order of effort: first, add compost — it improves drainage in clay soil more than anything else. Second, raise the beds: a raised bed 12 inches deep drains far better than flat ground, because water flows out of the sides as well as down. Third, avoid walking on beds, since compaction destroys drainage. Fourth, for seriously wet ground, consider a French drain or a soakaway — but that is a bigger job, and in most gardens compost and raised beds are enough. The soil drainage improvement guide and the raised bed soil mix guide cover the practical details, and the vegetables raised bed gardening guide explains how raised beds solve drainage problems.

Digging, no-dig and preparing a new bed

To dig or not to dig is one of the great garden debates, and both approaches work. Traditional digging — turning the soil over with a fork or spade, breaking up clods, and digging in compost — suits a new bed on compacted or weedy ground, because it lets you remove perennial weed roots and break up compaction. Dig in autumn or a few weeks before planting, let frost and rain break the clods down over winter, and rake the bed level before sowing.

No-dig is the alternative: lay cardboard over the weeds, pile 4–6 inches of compost on top, and plant straight into the compost. The cardboard smothers weeds, the worms pull the compost down into the soil, and the soil structure is never disturbed. No-dig suits established beds and gardeners who want to protect soil life, and it works well for most vegetables — though deep-rooted vegetables such as carrots and parsnips do best when the soil below the compost is already loose. Whichever method you choose, do not work the soil when it is wet: wet soil compacts underfoot and under the spade, and compacted soil stays compacted for years. No-dig gardening — cardboard plus compost, with no turning of the soil — is another approach worth reading about once the guide is published, and the green manure guide covers cover crops that improve soil over winter.

Preparing a bed before planting: a checklist

A few weeks before planting, walk the bed and work through this list. Remove weeds, including their roots — perennial weeds such as bindweed and couch grass will outcompete young vegetables if left in. Dig in 2–3 inches of compost, or top-dress if you are no-dig. Rake the surface level and break up large clods, so seeds sit at an even depth. Water the bed if it is dry, so the soil is moist when you sow or plant. Check the pH if you have not done so recently, and adjust only if the test says so. Mark out rows or blocks with string, so spacing stays even — the plant spacing calculator helps you plan. And finally, mulch around transplants after planting, keeping mulch a few inches from stems. The vegetables spacing guide gives the spacing for each vegetable, and the mulching vegetables guide covers mulching methods.

Common soil preparation mistakes

  • Never testing the soil, so you guess at pH and feed blindly.
  • Adding lime to soil that is already alkaline, or sulphur to soil that is already acidic.
  • Working wet clay soil, which compacts into bricks.
  • Adding sand to clay soil, which can set like concrete.
  • Using fresh manure on root vegetables, so carrots fork.
  • Digging in compost once and never again, so the soil runs down year after year.
  • Walking on beds, compacting the soil you just improved.
  • Planting vegetables into waterlogged soil instead of fixing drainage first.
  • Leaving beds bare over winter, so rain washes nutrients away.

Most soil preparation mistakes are made once and then lived with for a season. Test first, add compost every year, keep off the beds, and keep the soil covered. That is most of soil preparation, and it costs little.

Frequently asked questions

What pH do most vegetables need?

Most vegetables grow well at pH 6.0–7.0, slightly acidic to neutral. Potatoes prefer 5.0–6.0 and asparagus prefers 6.5–7.5 — check your local extension service for testing in your area.

How do I improve clay soil for vegetables?

Add compost every year, avoid working the soil when wet, and do not walk on beds. Compost opens clay up so it drains better — never add sand to clay.

How do I improve sandy soil for vegetables?

Add compost every year and mulch heavily. Sandy soil loses organic matter and water fast, so compost and mulch are essential.

Should I dig my vegetable beds?

Digging suits new beds on compacted or weedy ground. No-dig — cardboard plus compost — suits established beds and protects soil life. Both work; the key is compost and not compacting the soil.

How much compost should I add?

About 2–3 inches dug into the top 6–8 inches before planting, every year, plus an inch as a top-dress during the season for heavy feeders.

Related guides

For more vegetable help, browse the guides hub and the growing guides hub, and try the soil volume calculator and the raised bed soil calculator. Good next reads are the vegetables beginner guide, the vegetables raised bed gardening guide, and the soil pH testing guide. And as always, check your local extension service — local advice beats any general guide for your soil, your weather and your varieties.