Your body leans forward when walking up a hill to keep your balance. A study by Leroux and colleagues in Gait and Posture showed that your trunk and pelvis tilt forward as a slope rises. This movement keeps your centre of gravity over your feet, helping your muscles work better.

You have felt it on every slope you have ever climbed. The road tilts upward, and without a single conscious thought, you fold forward into it, chest towards the rise, as though bowing politely to the hill. Then you turn to go back down, and your body does the exact opposite, settling onto its heels, leaning away from the drop, braking against the pull of the ground. A hiker does it on a mountain path. A child does it on a playground ramp. You do it on the footbridge over the railway line.

It looks like nothing at all. It is, in fact, a small masterpiece of physics and biology, worked out by your body in a fraction of a second, every single time.

To see how, you need just one idea: your centre of gravity. This is the single point where all your body weight can be imagined to gather, sitting roughly behind your navel. You stay upright only as long as the invisible vertical line dropping from that point lands inside your base of support, the small patch of ground beneath and between your feet. Let that line stray outside your feet, and you topple. A slope is forever trying to pull you while moving upwards, and push you while moving downwards, thanks to gravity. The lean is how you push it back to ensure there is a straight line between your centre of gravity and base of support.

WHY DO WE LEAN FORWARD WHEN WALKING UP A HILL?

Stand straight on a rising slope, and gravity, pulling straight down, drags your centre of gravity back behind your heels. Left alone, it would sit you down backwards onto the hill. So you lean your trunk forward, sliding your weight back over your feet where it belongs. Biomechanics laboratories have measured this exactly: compared with walking on a flat surface, the trunk and pelvis tilt steadily forward as a slope rises, and the steeper the climb, the deeper the lean, according to a study by Leroux and colleagues published in Gait and Posture.

The forward fold does a second job too. It sets your body at just the right angle for its most powerful muscles to fire, the big hip extensors and glutes behind your hips, which shorten as they contract to haul your whole body upward. Scientists call this positive work, muscles generating energy to lift you against gravity, according to a study published in the Journal of Experimental Biology. Climbing, in short, is your muscles doing the work gravity will not.

WHY DO WE LEAN BACK WHEN WALKING DOWNHILL?

Point yourself downhill, and the danger flips. Now gravity is tugging your centre of gravity forward, out past your toes, threatening to tip you headlong down the slope and run your legs away beneath you. So your body leans back, keeping its weight gathered over the feet, and your legs stop being engines and turn into brakes.

The same researchers who recorded the forward lean uphill found its mirror image here, a backward tilt of the trunk going down, growing with the steepness of the descent, according to a study published in the Journal of Applied Physiology. The knee bends more, as well, lowering you gently rather than letting you fall.

WHY DOES WALKING DOWNHILL LEAVE YOUR THIGHS SORE?

Here is the part that catches everyone out. Downhill feels like the easy direction, and in one sense it is, costing far less breath and energy than the climb. But it is brutal on the muscles. Going up, your muscles shorten as they work. Going down, they must lengthen while still straining to hold you back against gravity, a mode called eccentric contraction, according to a study published in the Journal of Biomechanics.

It is the same action as lowering yourself slowly into a chair rather than dropping into it. The quadriceps at the front of your thighs do most of this braking, step after jarring step, and it is this lengthening under load that tears tiny fibres in the muscle and leaves your thighs aching the next morning. Uphill punishes your lungs. Downhill punishes your legs.

HOW DOES YOUR BODY KNOW WHEN TO LEAN?

You never decide any of it. Deep in your inner ear sits the vestibular system, a set of fluid-filled loops that sense the tilt and motion of your head, while tiny sensors in your muscles and joints, called proprioceptors, report your body's position moment by moment. Together they read the gradient and set the lean before your foot has even landed, adjusting your posture a step ahead of the ground. It is why your body begins to change shape the instant a slope arrives, long before your mind has even registered the hill.

So the next time a path rises or falls away in front of you, notice the quiet thing your body does without being asked. It leans into the climb and sits back from the fall, balancing a falling weight over a moving base, step after step, with a physics it was never taught.

- Ends