By profession
Neck and back pain in programmers
Coding is long, still and absorbing, which is a hard combination for the neck. Here is what the studies of developers and other computer users actually show.
If you write code for a living, you probably know the pattern: a good session, three hours gone, and a neck that has set like concrete. Neck and back pain in programmers is common, but research on developers specifically is thinner than you might expect. This page sets out what it does show, what it borrows from studies of other computer users, and what tends to help.
How common is neck and back pain in programmers?
Most of the studies we found on software developers are surveys from India and Pakistan, so treat the numbers as a rough guide rather than a figure for your team.
- In a survey of 200 software professionals at multinational companies in India, 72% had had musculoskeletal pain in the past year. The lower back (66.7%) and the neck (56.9%) were the most affected areas, and working eight or more hours a day was linked to about three times the odds of pain (Chaturvedi et al., 2025).
- Among 185 software engineers in Karachi who spent at least six hours a day at a screen, 26.5% had neck pain on the day they filled in the questionnaire, and 64% had had it at some point before (Rasim Ul Hasanat et al., 2017).
- A review of 13 studies with 4,632 IT professionals found prevalence figures anywhere from 20% to 89% (Prasetya et al., 2024). A range that wide says as much about how the studies asked their questions as about developers.
The best long-term data come from computer users in general. When 632 people starting jobs with at least 15 hours a week of computer work were followed for up to three years, more than half reported neck, shoulder, arm or hand symptoms within their first year (Gerr et al., 2002).
What coding adds to an ordinary desk job
Long hours in one position
Programming can mean long screen sessions with few natural interruptions, and the hours stretch further when something is due. In the Indian survey, long days were one of the clearest links with pain. Whether sitting itself harms the back is less settled than it sounds; lower back pain from sitting goes through that evidence, and sedentary behaviour explains the term researchers use for it.
Laptops
A laptop forces a trade-off: if the keyboard is where your hands want it, the screen is too low. In a motion-capture study of 30 people, working on a laptop meant about 11 degrees more neck flexion than working at a desktop computer, along with more shoulder elevation. A tablet meant about 17 degrees more (Yu et al., 2018).
For longer laptop use, the UK Health and Safety Executive (HSE) suggests a separate keyboard and mouse so the screen can go up on a riser, or a separate screen altogether (HSE). Working on a laptop without straining your neck has the details.
Two monitors
If you keep the editor on one screen and documentation, a terminal or the running app on another, there is little research on what that does to the neck over months. Short lab studies do show that the layout matters: in 20 young adults, arranging two screens in a V shape or an L shape changed how far the head turned and how hard the neck and shoulder muscles worked (Fang et al., 2023).
OSHA’s workstation guidance says the monitor should sit directly in front of you, and monitors should not be farther than 35 degrees to the left or right (OSHA). A practical reading for two screens: put the one you look at most straight ahead and the other to the side, rather than having the gap between them in front of your nose. How to set up your monitor covers height and distance.
Crunch, stress and short nights
Release weeks change more than the hours. In laboratory studies, time pressure and mental stress raise muscle activity in the neck, shoulders and forearms: a meta-analysis of 19 articles found a medium-sized increase (Eijckelhof et al., 2013). In the Karachi survey, work-related mental stress and too little sleep were both linked to having neck pain at the time (Rasim Ul Hasanat et al., 2017).
The long-term picture is more mixed. A review of prospective studies in office workers found that high psychosocial stress did not predict who went on to develop neck pain. The strongest predictors were being female and having had neck pain before (Paksaichol et al., 2012). A fair reading is that stress changes how your muscles work in the short term, while the best single warning sign for future neck pain is a previous episode.
Wrists and hands
Keyboard-heavy work raises the question of carpal tunnel syndrome. A systematic review found insufficient epidemiological evidence that computer work causes it (Thomsen et al., 2008). A wider review of clinically examined disorders found limited evidence linking mouse time to forearm disorders, and none of the links it looked at reached moderate or strong evidence (Wærsted et al., 2010). That does not make sore wrists imaginary. It means the evidence does not support a simple “too much typing” explanation. Pain that runs from the shoulder down the arm is covered in shoulder pain from computer work.
Does a rounded upper back matter?
One study measured 90 full-time software developers with a simple wall test: the distance from the bony point at the base of the neck (C7) to the wall behind. Those with moderate chronic neck pain tended to have a larger distance, but every participant had a mildly rounded upper back, with or without pain, and the authors called the clinical significance of the difference debatable (Kovac & Krkeljas, 2025).
In other words, some rounding of the upper back (thoracic kyphosis) was the norm in this group, not a sign of pain on its own. If you are curious about yours, the wall posture test is a quick self-check, and rounded upper back explains what it does and does not mean.
What tends to help
A setup that does not fight you
The HSE describes a standard setup like this: the top of the screen level with your eyes and about an arm’s length away, the keyboard just below elbow height, the mouse in line with your elbow, and the screen and keyboard central so you do not twist (HSE). It is worth getting right, especially in a home office that grew out of a kitchen table.
Keep your expectations realistic, though. A Cochrane review of 15 trials in office workers found that workstation adjustment and sit-stand desks (one trial each) had no effect on upper limb pain or discomfort (Hoe et al., 2018). A good desk makes the day more comfortable. It is not a treatment.
Breaks you will actually take
There is no legal rule on how long or how often breaks should be for screen work. The HSE suggests short, frequent breaks rather than long, rare ones: 5 to 10 minutes every hour is better than 20 minutes every two hours (HSE). The trial evidence is weak: a 2025 Cochrane review of nine trials, almost all in office workers, rated the evidence on extra breaks and neck or back pain as very uncertain (Luger et al., 2025). Waiting for a build, a test run or a deploy is an easy moment to stand up anyway. Microbreaks goes into how often to move.
Regular exercise, especially strengthening
Of the options on this page, exercise has the most consistent evidence. A meta-analysis of eight trials in office workers with neck pain found a clinically meaningful drop in pain with strengthening exercise compared with no exercise; the evidence for stretching and endurance work was thinner (Louw et al., 2017).
It does not have to take long. In a trial of 198 working adults with frequent neck and shoulder pain, two minutes of strengthening a day, five days a week, lowered pain by 1.4 points on a 10-point scale after ten weeks, compared with health information alone (Andersen et al., 2011). Do stretches help neck pain from desk work? looks at the difference between stretching and strengthening in more detail.
When to see a doctor
The NHS advises seeing a GP if neck pain or stiffness has not gone away after a few weeks, if painkillers have not worked, if you are worried, or if you have other symptoms such as pins and needles or a cold arm (NHS). For hands, wrists and forearms, see a GP if symptoms of repetitive strain injury are not going away or are getting worse (NHS). The full list of warning signs is on neck pain from desk work.
Where Bavelu fits
Bavelu is built for the gaps in a working day. Its desk routines take two to four minutes and are guided by AirPods, whose motion sensor follows your head through each move, and the app can let you know when your head starts leaning forward while you work. Daily sessions for the neck, shoulders, upper back and lower back come in a short and a full version. All of it is designed and filmed by physiotherapists led by Mgr. Lukáš Kučera, and it is exercise guidance, not a diagnosis or treatment. If you want to know how the head tracking works, see how AirPods can track your head posture.
Questions people ask
Is neck pain common in programmers?
The surveys that exist say yes. In one of 200 software professionals in India, 72% had musculoskeletal pain in the past year, most often in the lower back (66.7%) and the neck (56.9%). Most studies of developers are small surveys, so the exact figures vary a lot from one to the next.
Is a laptop worse for my neck than a desktop?
It tends to bend the neck further. In a motion-capture study of 30 people, laptop work meant about 11 degrees more neck flexion than a desktop computer. The UK Health and Safety Executive suggests a separate keyboard and mouse for longer laptop use, so the screen can be raised.
Can programmers get carpal tunnel syndrome from typing?
It is possible, but a systematic review found insufficient evidence that computer work causes carpal tunnel syndrome. Numbness, tingling or a weak grip, especially at night, is still worth showing to a GP if it is not going away or is getting worse.
Will a standing desk or a new chair stop the pain?
Probably not on their own. A Cochrane review of trials in office workers found that workstation adjustment and a sit-stand desk (one trial each) made no difference to upper limb pain or discomfort. A good setup makes long days more comfortable, but regular exercise, especially strengthening, has stronger evidence.
How often should I take a break from coding?
There is no legal rule. The UK Health and Safety Executive suggests short, frequent breaks, for example 5 to 10 minutes every hour rather than 20 minutes every two hours. Trials have not clearly shown that extra breaks prevent pain, so treat them as part of the answer rather than all of it.
Terms on this page
Sources
- Chaturvedi R et al. Exploring musculoskeletal disorders and ergonomic challenges among software professionals: a cross sectional study. Journal of Family Medicine and Primary Care, 2025.
- Rasim Ul Hasanat M et al. Frequency and associated risk factors for neck pain among software engineers in Karachi, Pakistan. Journal of the Pakistan Medical Association, 2017.
- Prasetya TA et al. Prevalence and associated risk factors of musculoskeletal disorders among information technology (IT) professionals: a systematic review. Narra J, 2024.
- Gerr F et al. A prospective study of computer users: I. Study design and incidence of musculoskeletal symptoms and disorders. American Journal of Industrial Medicine, 2002.
- Yu Z et al. Differences in posture kinematics between using a tablet, a laptop, and a desktop computer in sitting and in standing. Work, 2018.
- Health and Safety Executive. Good posture when using display screen equipment.
- Fang F et al. The effects of dual screen layout on neck-shoulder muscle activity and head-neck posture variability during computer tasks. Work, 2023.
- Occupational Safety and Health Administration (OSHA). Computer workstations eTool: monitors.
- Eijckelhof BH et al. The effects of workplace stressors on muscle activity in the neck-shoulder and forearm muscles during computer work: a systematic review and meta-analysis. European Journal of Applied Physiology, 2013.
- Paksaichol A et al. Office workers' risk factors for the development of non-specific neck pain: a systematic review of prospective cohort studies. Occupational and Environmental Medicine, 2012.
- Thomsen JF, Gerr F, Atroshi I. Carpal tunnel syndrome and the use of computer mouse and keyboard: a systematic review. BMC Musculoskeletal Disorders, 2008.
- Wærsted M, Hanvold TN, Veiersted KB. Computer work and musculoskeletal disorders of the neck and upper extremity: a systematic review. BMC Musculoskeletal Disorders, 2010.
- Kovac D, Krkeljas Z. The difference in C7 to wall distance in a group of software developers with and without moderate chronic neck pain. Work, 2025.
- Hoe VC et al. Ergonomic interventions for preventing work-related musculoskeletal disorders of the upper limb and neck among office workers. Cochrane Database of Systematic Reviews, 2018.
- Health and Safety Executive. Work routine and breaks (display screen equipment).
- Luger T et al. Work-break interventions for preventing musculoskeletal symptoms and disorders in healthy workers. Cochrane Database of Systematic Reviews, 2025.
- Louw S et al. Effectiveness of exercise in office workers with neck pain: a systematic review and meta-analysis. South African Journal of Physiotherapy, 2017.
- Andersen LL et al. Effectiveness of small daily amounts of progressive resistance training for frequent neck/shoulder pain: randomised controlled trial. Pain, 2011.
- NHS. Neck pain.
- NHS. Repetitive strain injury (RSI).
This page explains a topic in general terms. It is not a diagnosis and does not replace a doctor or physiotherapist. If something hurts badly, keeps getting worse or comes with numbness, weakness or fever, see a doctor.