The carriage lights drop to a dull amber somewhere after ten, the conversation up the aisle finally runs out, and the whole train settles into one long rolling note with a station buried in it every hour or so. Overnight trains are a strange bargain. The motion itself is unusually good at putting people under, and almost everything bolted around that motion — brakes, doors, platform announcements, the ticket check — is unusually good at pulling them back out. So how to sleep on a train is rarely a question of being tired enough. It is a question of giving the rocking a fair chance and taking as much of the rest off the table as you can before the lights go down.

Most of what helps gets decided early: the spot you booked, how warm you will be at 4am, and what your ears are doing when the train rolls into somewhere at three.
How to sleep on a train: berth or seat is the first decision
If a sleeper berth is available and within reach of your budget, take it. Horizontal beats comfortable. A reclining seat still asks your neck and shoulders to hold a position all night, and holding a position is not rest, however plush the upholstery.
Given a choice of bunk, the tradeoff is simple. A lower berth is easier to climb into and out of at 3am, but it usually sits closer to the corridor light and the compartment door. An upper berth is darker, more enclosed, and often warmer, at the cost of a ladder in the dark. Light sleepers who do not expect a night trip to the toilet tend to be happier up top.
Wherever you end up, ask for a compartment away from the vestibule doors and the toilets if the attendant has any flexibility. Those doors cycle all night, and each cycle is a small bang and a wash of corridor light.
If you are in a seat rather than a berth, the window seat is the sleep seat: something solid to lean against, control of the blind, and no one squeezing past your knees. The aisle is the better seat for legroom and worse for everything else. If the train has a quiet coach, book it, and avoid the coach nearest the café car, which stays social long after the rest of the train has gone silent. Much of the rest of the seat-sleeping craft carries straight over from the air, and it is laid out in how to sleep on a plane.
Work with the rocking instead of bracing against it
The sway is the part people romanticize, and mostly they are right to. Slow, regular motion has settled human beings for as long as anyone has rocked a cradle. What ruins it is bracing: lying stiff, holding your shoulders against the roll, catching yourself on every curve. That is what leaves travelers feeling worked over in the morning rather than rested.
In a berth, lie on your side along the length of the carriage with knees slightly bent and let your body move with the train instead of resisting it. Some long-distance travelers swear by sleeping with their feet pointed in the direction of travel so a hard brake presses them into the mattress rather than toward the headboard; it costs nothing to try, and if you cannot tell the difference, you have lost nothing. Wedge a rolled jacket or a spare pillow along your back so the sway has something to land against.
In a seat, get your head resting sideways rather than pitching forward, put your feet up on your bag if you can manage it, and loosen anything tight around your waist and ankles.
Pack the night, not just the trip
Overnight trains swing between overheated and genuinely cold before dawn, and the heating rarely asks your opinion. Sleep in layers you can shed without standing up, keep socks on, and leave one extra layer within arm's reach so you are not digging through a bag in the dark.
Then the small kit that decides the night:
An eye mask. Every station stop floods the compartment with platform light, and corridor lights often stay on all night. This is the highest-value item you can carry onto a train.
Something in your ears. Earplugs if you want the volume of the whole train pulled down. Headphones if you would rather replace the noise with something even. Either beats a speaker in a shared compartment.
Your valuables where you would notice them. A bag strap looped around a leg or your arm through the shoulder strap. Peace of mind is a sleep aid; lying there mentally guarding a rucksack is not.
Two alarms, set for well before arrival. Thirty to forty-five minutes gives you time to wake up properly, find your shoes, and get your bag down without a scramble.
A word with the attendant. On many overnight services the attendant will hold tickets or documents so checks do not wake you, and will knock before your stop. Ask when you board. It removes the low-grade vigilance of half-watching for your station all night, which is what keeps a lot of people surfacing every hour.
Sound: cover the events, not the train
What wakes you on a train is almost never the rumble. It is the events sitting on top of it — the brake squeal, the door, the announcement, the shunt as something couples in a rail yard at 2am. Covering events in an eventful place is the narrow job that steady sound is genuinely good at, and a sleeper car qualifies; the longer version is in why rain sounds help sleep.
The useful trick on a train is to mask with the train. Your ears have already accepted the rumble beneath you, so a recording from the same family blends into it instead of competing with it, and a brake squeal lands as one more thing the train is doing rather than as something arriving out of nowhere. That is exactly what Night Train — Sleeper Car Rhythm is for: low, rolling night-train sound with the horns, the stations, and the announcements left out, so what reaches your ears is only the half of the train that was already helping.
Loop it, so there is no moment past midnight when it simply stops and hands the compartment back to the brakes. Headphones, out of courtesy to whoever is sharing, and low enough that the attendant's knock still gets through. Every track in it is held to the same bar — steady, no fade-outs, handoffs that never sound like the train slowing down — and that checklist lives in what makes a rain sound work. If the train turns out to be your sound generally, and you want it in your own bed on the nights you are not traveling, that is the whole story of train sounds for sleeping.
Be honest with yourself about the limits, though. Nothing in your headphones will cover a hard brake or a floodlit platform at Basel. Sound handles the low, ordinary layer of the night. The eye mask and the berth handle the rest.
What a good night on a train actually looks like
Broken. Two or three surfacings between departure and arrival is a normal overnight train, not a failed one, and treating each wake-up as evidence that the night is ruined is the fastest way to make it so. Roll over, keep the mask on, do not check the time, and let the rocking take you back down.
Plan the arrival to match. A soft first hour on the other end — coffee, no meetings, no rental car counter at 6am if you can avoid it — is worth more than any trick on this list, and the rest of the travel-night library is in the full guide collection.
For tonight's train
Berth if you can get one, socks on, mask down, and Night Train — Sleeper Car Rhythm on repeat until the station you actually want.
This article is for general information and isn't medical advice. If sleep problems persist, talk to your doctor.