
Best exercise for programmers? If you want the honest answer, boxing is hard to beat.
Not because programmers secretly want to be fighters. Because writing code all day creates a very specific physical and mental mess. Too much sitting. Too much screen time. Too much tension through the neck, shoulders and upper back. Too much thinking without enough proper physical output.
The NHS says many adults in the UK spend around nine hours a day sitting, and that reducing health risk means both exercising regularly and sitting less (NHS guidance). Programmers are often at the sharp end of that problem.
A lot of standard fitness advice for desk workers is technically right and practically useless. Walk more. Stretch a bit. Do not hunch. Fine. That helps. It is just not enough for most people who spend long days at a keyboard and need something they will actually stick with.
Why programmers need a different kind of exercise
Programmers do not just get unfit. They get patterned.
You sit with your hips folded for hours. Your upper back stiffens. Your chest tightens. Your head creeps forward toward the screen. Your shoulders stay tense all day, especially when deadlines are tight or the codebase is ugly.
An observational study in BMJ Open found reduced thoracic mobility in people who sat more than seven hours a day and did less than 150 minutes of weekly physical activity (BMJ Open study). That matters because the thoracic spine contributes heavily to trunk rotation and also affects what happens around the neck and shoulders.
There is a second problem on top of the physical one. Coding is cognitively exhausting without being physically tiring in the right way. You can finish a day mentally fried but still feel restless, wired and weirdly under-used. That is why so many programmers end up bouncing between caffeine, screens and another low-movement evening.
The best exercise for programmers needs to do four things at once:
- undo some of the stiffness created by sitting
- train the upper back, shoulders, core and hips properly
- clear the head rather than adding another abstract task
- be interesting enough that you keep showing up
That last point matters more than people admit.
Why boxing is the best exercise for programmers
Boxing works because it attacks the programmer problem from several directions at once.
First, it gets you off the sagittal-plane treadmill of desk life. Coding all day is static. Boxing is not. You rotate, shift, brace, step, punch, recover and repeat. Your body has to coordinate, not just grind through a repetitive cardio pattern.
Second, boxing trains the exact areas desk workers neglect. A systematic review on office workers with neck pain found that strengthening exercise improved pain and quality of life, with the strongest recommendation around neck and shoulder strengthening work (systematic review). Boxing is not physiotherapy, but good boxing training does demand sustained shoulder endurance, upper-back control, trunk rotation and core engagement.
Third, boxing forces attention. You cannot half-think about three pull requests, an API bug and tomorrow's stand-up while you are trying to move your feet, hold your balance and throw clean combinations. That is one of its biggest advantages over gym sessions that still leave your brain free to keep chewing on work.
Fourth, it is not boring.
That sounds trivial until you remember how many programmers have already tried the obvious fixes and abandoned them. Another gym membership. Another running app. Another plan to do mobility in the living room for twelve minutes every morning. The best exercise is the one that survives contact with real life.

Boxing fixes the posture problem more honestly than most gym routines
A lot of people talk about posture as if it is purely cosmetic. Pull your shoulders back. Sit up straight. Problem solved.
That is not how it works.
If you sit for long stretches, your issue is not just appearance. It is capacity. Your body loses tolerance for good positions because you do not spend enough time moving well under load. That is why one "perfect posture" correction lasts about 40 seconds before you fold back toward the screen.
Boxing helps because the session asks for repeated, real movement. You brace your trunk. You keep your chest organised. You learn to rotate from the body rather than just flicking the arms. Your legs have to contribute. Your shoulders have to work without turning to stone.
That combination is useful for programmers because the usual weak links are not isolated. They travel together. Tight hips, dead glutes, stiff thoracic spine, cranky neck, tired shoulders, bad sleep. It is one chain.
If your real issue is that your body feels like it has been folded into a laptop shape, the answer is not usually another seated machine at the gym.
Boxing also solves the mental side of programming better than most exercise
Programming can be satisfying, but it is also rumination-friendly. You can keep working in your head long after you close the laptop.
Exercise helps with stress in general. Mayo Clinic puts it plainly: exercise in almost any form can act as a stress reliever, partly by boosting feel-good brain chemicals and partly by pulling attention away from daily worries (Mayo Clinic).
Boxing adds something extra. It is immersive. You do not just burn calories. You enter a session that demands timing, rhythm, awareness and intent. It is closer to a hard reset than a distraction.
That is why programmers often take to it quickly. The same brain that likes skill progression, technical detail and measurable improvement tends to enjoy boxing once the intimidation wears off. There is always something to refine. Your jab gets cleaner. Your feet stop tangling. Your conditioning stops falling apart after two rounds. The process rewards attention.
If running gives you space to think, boxing gives you a reason to stop thinking for an hour. A lot of programmers need the second one more.
For more on that side of it, our pieces on boxing for stress relief and does boxing help you sleep are worth reading next.
But is boxing better than lifting, running or Pilates?
For programmers specifically, I would put it like this.
Lifting is excellent, especially if you are disciplined and know what you are doing. But plenty of programmers turn lifting into another solitary optimisation project. Headphones on. Spreadsheet mindset. Minimal mental decompression.
Running is simple and useful, but it does not give you much for upper-back strength, rotation, coordination or engagement. If you love it, keep it. If you hate it, you probably will not stick with it.
Pilates is strong on control and mobility. It is a better comparison than most people think. But for many programmers, boxing wins on buy-in. It is easier to stay consistent with something that feels like learning a skill rather than doing remedial work, even if the remedial effect is part of the benefit.
Commercial gyms often fail on atmosphere and adherence. After a day of sitting alone solving abstract problems, many people do not want one more anonymous room full of machines.
That is why boxing lands so well. It covers conditioning, coordination, posture, stress relief and community in one place.
If you want the broader comparison, read is boxing a good workout.

What kind of boxing session suits programmers best?
For most programmers, the sweet spot is beginner-friendly recreational boxing two or three times a week.
You do not need hard sparring. You do not need to pretend you are preparing for a title shot. You need sessions that make you move properly, work hard, learn real technique and leave feeling better than when you walked in.
That is exactly why our Adult Recreational boxing classes tend to suit desk workers well. You get the structure, the coaching and the intensity without the nonsense.
If you are based around Kidbrooke or Greenwich, it is also practical enough to do after work, which matters more than people think. A perfect training plan on the other side of London is not a real training plan.
The honest caveat
Boxing is not magic, and it is not a substitute for basic habits.
You still need to stand up more. You still need a decent desk setup. You still need to sleep properly and stop pretending coffee counts as recovery.
And if you have a genuine injury, you need proper medical advice, not a motivational article from a boxing gym.
But if the question is practical rather than theoretical - what is the best exercise for programmers who need to move better, think less for an hour, and keep coming back - boxing is one of the strongest answers on the table.
It is hard enough to feel real, technical enough to stay interesting, social enough to keep you accountable, and useful enough to counter what long coding days do to the body.

How to start if you do this job
For most programmers, the best first step is a normal coached group class, not a complicated programme. Start with Adult Recreational boxing or the broader adult beginner boxing guide if you want to understand what happens first.
If your rota, clients or working hours make set classes hard, use boxing personal training or private boxing lessons as the paid route. The free trial is for scheduled group classes.
Book a free trial session at Honour and Glory Boxing Club.
More job-specific boxing guides
If this article fits your work pattern, the full boxing for workers guide links the rest of the job-specific series, including desk workers, shift workers, trades, carers, drivers, teachers and busy professionals.
H&G Team
Writer at Honour & Glory Boxing Club, a community boxing gym in Kidbrooke, South East London.
Was this page helpful?
Your feedback helps us improve this page
Got questions about what you just read?
ASK OUR AI ASSISTANT ✨MORE LIKE THIS
Choose your next step
Turn this article into the right action
Some readers are ready to book. Some need the class route first. Pick the route that matches what you actually want.


