The heel method
Sit on the saddle with your heel on the pedal at its lowest point. Your leg should be straight, with a slight bend in the knee. Then ride normally with the ball of your foot on the pedal. This quick check often finds a saddle that is too low.
Once the height feels right, check that your hips stay level when you pedal and do not rock side to side.
Check your knee angle
With the pedal at the bottom of its stroke and your foot level, the knee should still be slightly bent. Many riders set the saddle too low because it feels safer. A slightly higher saddle often feels smoother after a few rides.
Make small changes
Change the height in small steps, about 5 mm at a time, and ride for a few days before you adjust again. Keep the saddle level and set the fore-aft position separately, because that also affects knee and hip comfort.
Learn more
For a deeper guide to bike setup, The Cycling Bible covers fit, nutrition and maintenance in one book. If you have persistent pain, a bike fitter or your doctor can check your setup and your body.