Short answer
Start with a strong water spray on the undersides of the leaves, then use insecticidal soap or horticultural oil, and repeat the treatment on a schedule. Remove heavily webbed leaves, and protect the predators that keep mites in check. Follow the label for any product you use.
How to confirm spider mites
Spider mites are tiny, often too small to see clearly. Look for stippling (fine pale dots on the leaves), fine webbing on the undersides and between leaves, and leaves that turn bronzed, dry or brown. To check, hold a sheet of white paper under a branch and tap the leaves. Mites show up as small specks that move. A hand lens helps.
Step 1: Blast the undersides with water
Use a firm spray from a hose to knock mites off the stems and the undersides of leaves. Do this early in the day so the foliage dries out. Repeat every day or two while the population is high. The water also washes off webbing and makes it harder for mites to settle again.
Step 2: Remove webbing and badly damaged leaves
Wipe webbing off with a damp cloth where you can. Remove leaves that are heavily stippled or dying, and bag them for the bin rather than the compost. Mites move from leaf to leaf, so check neighbouring plants too.
Step 3: Insecticidal soap or horticultural oil
Insecticidal soap and horticultural oil work on contact. They need to reach the mites on the leaf undersides, so coat the leaf tops and undersides thoroughly. They have little lasting effect, so repeat the treatment every few days, or as the label says, because eggs can hatch after the first spray.
Use a product labeled for tomatoes, and follow the label for dilution. Test one leaf first and wait a day before treating the whole plant, since some plants react badly to soap or oil. Spray in the early morning or late in the day, and avoid hot sun and breezy days, when spray dries too fast or drifts onto beneficial insects.
Other options
Neem oil and some other botanical or biological products are used against mites. Check whether the product is labeled for tomatoes and for spider mites in your region before you use it, and read the label for the interval and any pre-harvest period.
Protect beneficial insects
Predatory mites, lacewings and pirate bugs all feed on spider mites. Broad-spectrum insecticides kill these predators too, and they often make mite outbreaks worse. Use the least harsh control that works, and avoid spraying flowers while bees are active.
Home remedies to approach with caution
Many home sprays are suggested for mites. Isopropyl alcohol solutions and dish soap mixtures can damage leaves, and reports vary on whether they help. If you want to try one, test it on a single leaf first, use a mild dilution, and avoid spraying in hot sun. A commercial insecticidal soap labeled for tomatoes is more predictable.
When to remove the plant
If the plant is mostly webbed or dead, especially late in the season, pull it out rather than trying to save it. Bag and bin it, and do not compost it.
Related problems
Mite feeding can also cause yellowing, so yellow leaves on tomato plants covers the other causes to rule out. Mites can also cause curling and browning, which is explained in why tomato leaves curl and turn brown. For other pests, see aphids on tomato plants and tomato leaf miner.