Have a bed. The most comfortable way to sleep on a train is in a bed. Some Amtrak trains with long distance routes include the option of sleeper cars. These can vary in size, depending on your, party but they can include full size beds or even double berths. These are in high demand, so make early reservations.
Pack well. Take comfort items with you on the train. A small pillow or specialized wraparound pillow is always a good idea. Earplugs and an eye mask are useful to block out surrounding noises. If you have space in your luggage, a familiar blanket will keep you cozy. Bring a travel alarm clock and set it for 45 minutes before your estimated arrival time. Your porter will knock to awaken you as the train approaches your destination, but you might need more time to prepare.
Prepare your body. To induce easy sleep, avoid taking stimulants. Don't drink coffee, energy drinks or alcohol for at least a few hours before you plan to sleep. Don't try sleeping on a full stomach but or when you're hungry. If you take sleep medication, have this on hand.
Dress to snooze. Even if it is 100 degrees outside, the air conditioning in the train can make it quite cold. Make sure that you have enough clothes to keep you warm throughout the night. Wear loose clothes and avoid heavy belts, jewelry and uncomfortable hair clips. Flat shoes that are not tight are more comfortable than high heels and pinched toes.
If your compartment has a shade, pull it down. You also might bring some duct tape and a dark, large beach towel. Tape the towel over your window if doesn't have a shade. Otherwise, you can become mesmerized watching the passing scenary and stay awake for hours. The shade or towel will also keep out any light.
Check the area. Before you prepare to sleep, secure your immediate area. If sleeping in a seat, try to find one away from people you don't know. Keep valuable items and personal belongings close to you or on your person if possible.