Quick answer: Your correct pillow loft is the gap from the mattress to the bottom of your ear, measured lying on your side without a pillow, minus how far your shoulder sinks in – about 1.5 in on a soft mattress, 0.75 in on medium and 0.25 in on firm, halved for back sleeping. An average-build side sleeper on a medium mattress lands at 4.5-5.5 in (11.4-14 cm), a narrow build on the same mattress at 3.75-4.75 in, and stomach sleeping is treated as a fixed 1-2 in. Every result carries a plus or minus half-inch tolerance, and memory foam needs about half an inch more because it compresses under your head.
Pillow Height Calculator
Most morning neck pain is a pillow-height problem. This works out the loft your neck actually needs — including how much your mattress changes the answer, which is the part most guides leave out.
Your result
Side sleeping needs the most loft, because your shoulder creates the biggest gap to fill. Too low and your head drops toward the mattress; too high and it is pushed up toward the other shoulder. Buying memory foam? Add about half an inch — it compresses under the weight of your head, so the loft on the box is not the loft you sleep on.
Your range fits a contoured memory-foam pillow. The Derila Ergo runs a recessed centre channel with raised side lobes, which covers a 4.5–5.5 in requirement for side and back sleeping.
Pricing, bundles and the 60-day money-back guarantee are all shown on that page. Or read our review first.
How this is calculated
The goal is a straight line from ear through shoulder — the pillow fills the gap so the neck is neither propped up nor sagging down.
Support height = your ear-to-mattress gap − how far your shoulder sinks into the mattress.
Starting gap, when you haven’t measured:
| Build | Side sleeping | Back sleeping |
|---|---|---|
| Narrow | 5.0 in | 3.5 in |
| Average | 5.75 in | 4.0 in |
| Broad | 6.5 in | 4.5 in |
Mattress sink subtracted (halved for back sleeping, since less shoulder is involved):
| Mattress | Sink |
|---|---|
| Soft | 1.5 in |
| Medium | 0.75 in |
| Firm | 0.25 in |
The result is shown as a ±0.5 in range, because loft tolerance is real — being half an inch out is not the same as being two inches out.
Stomach sleeping is treated as a fixed 1–2 in, because no loft figure makes the position good for your neck.
These figures are a practical model built from pillow-loft conventions and cervical-alignment principles, not a clinical measurement. Treat the output as a starting range to test, not a prescription.
General information, not medical advice. If you have persistent neck pain, numbness, tingling, or pain radiating into an arm, see a doctor or physiotherapist — a pillow will not fix nerve compression or a structural problem.
Pillow loft reference table
Every result the calculator can produce, published in full so you do not have to run it. The figure is the supported height under your head once the pillow has compressed — not the loft printed on the packaging. For memory foam, add roughly half an inch to the box figure, because it compresses under the weight of your head.
| Sleep position | Build | Mattress | Loft (inches) | Loft (cm) |
|---|---|---|---|---|
| Side | Narrow | Soft | 3–4 in | 7.6–10.2 cm |
| Side | Narrow | Medium | 3.75–4.75 in | 9.5–12.1 cm |
| Side | Narrow | Firm | 4.25–5.25 in | 10.8–13.3 cm |
| Side | Average | Soft | 3.75–4.75 in | 9.5–12.1 cm |
| Side | Average | Medium | 4.5–5.5 in | 11.4–14 cm |
| Side | Average | Firm | 5–6 in | 12.7–15.2 cm |
| Side | Broad | Soft | 4.5–5.5 in | 11.4–14 cm |
| Side | Broad | Medium | 5.25–6.25 in | 13.3–15.9 cm |
| Side | Broad | Firm | 5.75–6.75 in | 14.6–17.1 cm |
| Back | Narrow | Soft | 2.25–3.25 in | 5.7–8.3 cm |
| Back | Narrow | Medium | 2.75–3.75 in | 7–9.5 cm |
| Back | Narrow | Firm | 3–4 in | 7.6–10.2 cm |
| Back | Average | Soft | 2.75–3.75 in | 7–9.5 cm |
| Back | Average | Medium | 3.25–4.25 in | 8.3–10.8 cm |
| Back | Average | Firm | 3.5–4.5 in | 8.9–11.4 cm |
| Back | Broad | Soft | 3.25–4.25 in | 8.3–10.8 cm |
| Back | Broad | Medium | 3.75–4.75 in | 9.5–12.1 cm |
| Back | Broad | Firm | 4–5 in | 10.2–12.7 cm |
| Side & back | Narrow | Soft | 2.75–3.75 in | 7–9.5 cm |
| Side & back | Narrow | Medium | 3.25–4.25 in | 8.3–10.8 cm |
| Side & back | Narrow | Firm | 3.5–4.5 in | 8.9–11.4 cm |
| Side & back | Average | Soft | 3.25–4.25 in | 8.3–10.8 cm |
| Side & back | Average | Medium | 3.75–4.75 in | 9.5–12.1 cm |
| Side & back | Average | Firm | 4.25–5.25 in | 10.8–13.3 cm |
| Side & back | Broad | Soft | 4–5 in | 10.2–12.7 cm |
| Side & back | Broad | Medium | 4.5–5.5 in | 11.4–14 cm |
| Side & back | Broad | Firm | 4.75–5.75 in | 12.1–14.6 cm |
| Stomach | Any | Any | 1–2 in | 2.5–5.1 cm |
The method behind these figures: supported loft = the ear-to-mattress gap measured lying on your side without a pillow, minus how far the shoulder sinks into the mattress. Mattress sink is taken as 1.5 in for soft, 0.75 in for medium and 0.25 in for firm, halved for back sleeping because less shoulder is involved. Starting gaps where nothing is measured: narrow build 5.0 in side / 3.5 in back, average 5.75 / 4.0, broad 6.5 / 4.5. Results are given as a ±0.5 in range because loft tolerance is real. Stomach sleeping is treated as a fixed 1–2 in, because no loft figure makes that position good for the neck.
This table and the calculator are free to quote, cite or embed with attribution to Sleep Align. It is a practical model built from pillow-loft conventions and cervical-alignment principles, not a clinical measurement — treat the output as a starting range to test.
Why pillow height matters more than anything else about a pillow
Firmness, fill material and cooling all get more attention, but height is the variable that decides whether your neck spends the night in a neutral position or a strained one. A pillow that is an inch too high holds your head bent forward for seven hours. An inch too low and it drops sideways instead. Either way the same muscles are loaded all night, every night — which is why the pain is reliably worst in the first hour after waking.
The reason so many people buy a well-reviewed pillow and still wake up sore is that loft is personal. It depends on how wide your shoulders are, which position you sleep in, and how much your mattress lets you sink. A pillow that is genuinely correct for a broad-shouldered side sleeper on a firm mattress will be roughly two inches too tall for a narrow-framed back sleeper on a soft one.
The mattress variable nobody accounts for
This is the part that catches people out. On a soft mattress your shoulder sinks into the surface, which closes part of the gap the pillow would otherwise need to fill. The softer the bed, the less pillow you need — the opposite of most people's instinct.
It also explains a common experience: buying the right pillow, then getting a new mattress and finding the pillow suddenly wrong. Nothing changed about the pillow. The amount your shoulder sinks did.
The size of that shift is worth knowing before you replace a mattress: for a side sleeper it is 1.25 in between soft and firm, which is two and a half times the tolerance this calculator allows. Our sleep position and pain map sets out every position-and-firmness combination, what goes wrong mechanically when the pillow stays the same, and what the published research does and does not support about pain in each position.
Testing your result
Give any new height a full week. Your neck adapts to whatever position it has been held in, so a correct pillow can feel mildly wrong for the first two or three nights. What you are looking for after a week is the first hour after waking — if the stiffness has eased, the height is right. Our free seven-night sleep diary is built for exactly that week — it records morning pain and the position you woke in alongside how long you actually slept, so you are judging written-down nights rather than an impression. If it has not changed at all, you are probably out by more than half an inch, or the problem is not the pillow. Which direction you are out in shows up in observable signs, and whether your pillow is too high or too low sets out what each sign points to. Not every night-time symptom is a pillow-height problem, and the night-time symptom reference sets out which ones are: 50 symptoms against the position and mechanism each is associated with, including the 13 for which no published source describes any bedding change at all.
For a fuller breakdown of the other causes, see our guide to what causes morning neck pain and how to work out which one applies to you.
Use this calculator on your own site
Physiotherapists, chiropractors, ergonomics consultants and sleep writers are welcome to embed this tool free of charge. Copy the code below, or click Embed this calculator above. The only condition is keeping the attribution link. It is built as a single self-contained page that runs entirely in the browser — no signup, no tracking, nothing sent to a server — the same way the offline tools at sumikiri.online are built, which is where this one came from. If you would like it adapted for your own patients or audience, get in touch through our contact page.
Embed code
<iframe src="https://sleepalign.org/pillow-loft-calculator-embed/" width="100%" height="860" style="border:1px solid #e2e8f0;border-radius:12px" title="Pillow Height Calculator by Sleep Align" loading="lazy"></iframe> <p style="font-size:13px;color:#64748b">Calculator by <a href="https://sleepalign.org/pillow-height-calculator/" target="_blank" rel="noopener">Sleep Align</a></p>
Nothing is tracked, nothing is sold inside the widget, and no script from us runs on your page beyond the iframe itself. The only condition is keeping the attribution line.
Once you have your number, check it against the actual pillows. Our Pillow Loft & Specification Database records the published loft, trial window and warranty for 32 pillows straight from their manufacturers’ pages — and shows which of them fall inside the range calculated above. Only 16 of the 32 publish a height at all. Both this calculator and that dataset are free to reuse with attribution; see the Sleep Reference Library.
Want to keep your numbers?
Get the full pillow-height cheat sheet by email — all 28 loft combinations in one reference — plus a short series on what actually fixes neck-pain sleep. No spam, unsubscribe anytime.
One email with the cheat sheet, then the short series. Unsubscribe with one click.
