The intercostal muscles are a group of muscles that fill the 11 gaps between your ribs, linking each rib to its neighbours1, 2. They lie in three layers called external, internal and innermost, and they support the chest wall as the ribs move with each breath1, 2. Chest pain has many causes, and the NHS says to get it checked3.
Intercostal muscles (intercostals, rib muscles) at a glance
- What it does
- Moves the ribs for breathing: externals mainly help breathing in, internals mainly breathing out1, 2
- Nerve supply
- Intercostal nerves, from the front branches of spinal nerves T1 to T111
- Blood supply
- Anterior and posterior intercostal arteries1
- Pain it can send
- Chest wall pain after strains, tears or spasms2
The three layers of intercostal muscle raise your ribs to breathe in and lower them to breathe out
Kenhub says the external intercostals are the outermost layer, the internals form the middle layer and the innermost intercostals lie deepest1. Cleveland Clinic compares them to rowing teams pulling in sync. The externals mainly help you breathe in, the internals mainly help you breathe out, and the innermost layer supports the internals when you breathe out2.
Kenhub frames this as forced breathing. It says the externals raise the ribs during forced breathing in, while the internal and innermost layers lower them during forced breathing out1. Cleveland Clinic adds that the muscles work with the diaphragm in deeper breaths and help push air out when you sigh or cough2.
Each muscle runs from one rib to the next, and the intercostal nerves supply them
Most intercostal muscles attach to two ribs, one above and one below2. Kenhub says the externals run from the lower edge of one rib, down and towards the middle, to the upper edge of the rib below. The internals start at the costal groove of one rib and run down and towards the side1.
The intercostal nerves, which are the front branches of spinal nerves T1 to T11, supply the muscles, and the anterior and posterior intercostal arteries supply the blood1. Cleveland Clinic notes that the gaps between the ribs also hold the nerves and blood vessels the muscles rely on2. The sources differ on the internal layer: Cleveland Clinic says it is found only at the front of the body, and Kenhub does not make that distinction1, 2.
Strains, tears and spasms of these muscles can cause chest wall pain
Cleveland Clinic lists strains, tears, spasms and hernias among the injuries of the intercostal muscles, alongside broken ribs2. It says many problems with these muscles get better on their own, and that more serious ones need a healthcare provider's guidance2. The NHS describes a chest sprain or strain as pain that starts after a chest injury or chest exercise, may get worse when you breathe in and feels better when you rest the muscle3. See muscle strain for how strains are described in general.
Costochondritis is a look-alike. The NHS describes it as inflammation where the ribs join the breastbone, with sharp pain in the front or side of the chest that can be worse when you move your upper body, lie down or breathe deeply4. Cleveland Clinic says it does not affect the intercostal muscles directly but can cause similar symptoms2. The NHS links it to chest injury, repeated upper body movements such as lifting, heavy coughing and infection, and says it usually gets better on its own and can last a few weeks to several months4.
Rib and chest pain can come from the heart or lungs, so unexplained chest pain needs a doctor
The NHS says that in most cases chest pain is not caused by a heart problem, but it advises getting medical advice just in case and says not to self-diagnose3. Chest infection, pneumonia, pleurisy, shingles and anxiety are among the other causes it lists3. Cleveland Clinic says nerves that carry chest and back pain run close together, so pain can be felt in both places. It says chest and back pain together may point to a serious condition of the heart, lungs or biliary system, or to a musculoskeletal cause, and that a healthcare provider asks detailed questions to find the source5.
Some back pain needs a doctor before any stretch or massage
Tick anything that applies. The answer below changes to the most urgent step.
Warning signs from the NHS: Back pain, read 17 November 2026. This check is a prompt to get help, not a diagnosis.
Common questions about the intercostal muscles
They fill the 11 gaps between your 12 ribs, linking each rib to its neighbours. They lie in three layers: external, internal and innermost. Most attach to one rib above and one below, and the same gaps hold the intercostal nerves and blood vessels.
They move the ribs as you breathe. The externals mainly help you breathe in and the internals mainly help you breathe out, with the innermost layer supporting the internals. They also work with the diaphragm in deeper breaths and help push air out when you sigh or cough.
Yes. Cleveland Clinic lists strains, tears and spasms among intercostal muscle injuries, and says many get better on their own while more serious ones need a healthcare provider. The NHS describes strain pain as starting after chest injury or exercise and easing with rest. Unexplained chest pain should still be checked.
The NHS says not to self-diagnose chest pain. It says most chest pain is not caused by the heart but advises getting medical advice just in case. Sudden pain that does not go away, spreads to the arm, neck, jaw or back, or comes with breathlessness or sweating needs emergency help.