Clay and sand present opposite difficulties, and the main remedy is the same for both. Neither can be converted into the other, and both can be made into good garden soil.
Clay: the problems
Tiny particles packed closely, so pores are small.
Drains slowly and waterlogs in winter. Bakes hard and cracks in summer. Slow to warm in spring, which delays sowing. Heavy to work, and sticky when wet.
Structural damage from working it wet lasts years.
Clay: the advantages
Worth remembering, since clay has a poor reputation it does not entirely deserve.
It is naturally fertile, holding nutrients far better than lighter soils because of the way clay particles bind them.
It holds water well through summer, so established plants suffer less in drought.
Roses, fruit trees, shrubs and many perennials grow superbly on it.
Well-managed clay is among the best garden soil there is.
Improving clay
Organic matter, generously and annually. It binds particles into crumbs, opening up the structure so water drains and air reaches roots.
Apply five to seven centimetres to the surface each year and let worms incorporate it.
Never work it when wet. If it sticks to your boots, stay off it. This matters more than anything you add.
Dig in autumn if you dig at all, leaving rough clods for winter frost to break down.
Lime if the soil is acid, since calcium helps clay particles flocculate into crumbs. Test first.
Coarse grit can help in a planting hole or a bed, and it must be genuinely coarse and in real quantity. Small amounts of fine sand make matters worse.
Raised beds lift the root zone above winter wet and are frequently the simplest answer.
Plant in spring rather than autumn, so plants are not sitting in cold wet ground all winter.
Keep the surface covered and stay off it.
Sand: the problems
Large particles with large pores.
Water drains straight through, taking nutrients with it. Dries out rapidly. Low in fertility and organic matter, which burns off quickly in a well-aerated soil.
Plants suffer in drought and need feeding more often.
Sand: the advantages
Easy to work at any time of year.
Warms early in spring, giving a long season.
Drains freely, so winter wet is rarely a problem and Mediterranean planting thrives.
Root crops grow long and straight.
Improving sand
Organic matter, generously and annually, acting as a sponge to hold water and nutrients.
It breaks down faster on sand than on clay, so it must be replaced every year.
Use materials that last: composted bark, leaf mould and well-rotted manure alongside compost.
Mulch thickly to reduce evaporation and keep the surface cool.
Feed little and often rather than in large doses, since nutrients leach away.
Use slow-release and organic fertilisers rather than soluble ones.
Keep the ground covered with planting or green manures, since bare sand loses organic matter fastest.
Water thoroughly and less often to encourage deep roots.
Chalk
Shallow, stony, free draining and alkaline, with the same water-holding problem as sand plus a high pH.
Add organic matter, mulch heavily, and choose plants that suit alkaline conditions rather than fighting the pH.
Working with what you have
Choose plants suited to the soil, which is far easier and cheaper than changing it.
Clay suits roses, fruit, hydrangeas, astrantia, hardy geraniums, willows and most shrubs.
Sand suits lavender, rosemary, cistus, sedum, eryngium, grasses, bulbs and Mediterranean planting.
Chalk suits clematis, lilac, buddleja, scabious, dianthus, box and yew.
Use containers or raised beds with imported compost for the few plants that will not tolerate the site.
The common answer
Organic matter every year, keep the surface covered, and avoid compaction.
That improves clay and sand alike, and the difference over five years is considerable.
What not to do
Do not add fine builders' sand to clay, which combines with it to produce something closer to concrete. Only coarse grit, in quantity, helps.
Do not dig a planting hole in clay and backfill with compost, which creates a sump that fills with water. Improve a wide area instead.
Do not attempt to change the pH of a chalk soil, since the underlying rock buffers it back within a season.
And do not work any soil when it is wet, which undoes more than any amendment will put right.