CNBC talked with sleep experts to find out the best strategies to fall asleep when work is keeping you up.

1. Get out of bed

 This may seem counterintuitive, but lying in bed when you can’t fall asleep is the worst thing you can do, experts say.

“It’s called stimulus control,” says Dr. Raj Dasgupta, a physician who specializes in pulmonary and sleep medicine at the University of Southern California. He is also a fellow of the American Academy of Sleep Medicine.

“When you can’t shut your mind off, you have to leave the bed within the first 15 to 20 minutes of going to bed,” he says.