So your toddler is ready to move into their own bed. Everyone is excited except now, instead of rolling over and falling asleep, your toddler comes out every two minutes to find you. All evening long. The next day, they’re a basket case because they’re so exhausted.

Welcome to the toddler bed. Kids love the newfound freedom, and they can’t help but test the limits. Being all by themselves with no sides can feel very scary, so how can you get them to form the new habit of falling asleep in their big-kid bed without you losing your mind?

Going into this transition is a big move for your child. Naturally, it makes them insecure. They need your support to learn how to go to sleep in their big-kid bed. Sure, it comes naturally to you. But you’ve been doing it for many years. To your toddler, this is a new skill.

When to transition your toddler to a toddler bed

There’s no specific age for when to transition your toddler to toddler bed, but rather, The American Academy of Pediatrics (AAP) states that the best time to make the switch is once your child has attempted or learned how to climb out of their crib. That may be between 18 months and 3 years. Though neither of you may be really ready to say goodbye to their crib (it’s a big change!) it’s important to recognize that a fall while climbing out could be hazardous.

Depending on your child’s age and readiness, the transition may take a week or so. There’s of course always the option to switch to using their crib mattress on the floor for a while before getting a bigger bed and bed frame. You may want to look into using a Montessori floor bed, which is essentially a bed on the floor, with or without a frame.

But once you’re both ready for a toddler bed? Here’s what to know.

What to do before you get a toddler bed

If you can, there are a few key steps to take before you make the switch.

Set them up for success

Before you make the big transition, be sure your child has a regular bedtime routine. Then follow that exact routine when they move to their new bed.

You’ll also need to work to secure any large furniture or install childproof safety mechanisms on any drawers or doors you’re not keen on them opening given their newfound freedom.

Hype them up

Get them excited before you get the new bed. Introduce the subject by pointing out any friends or cousins with “big kid” beds. Reading books about this new change is also a terrific way to introduce the idea.

Wait for the right time

Try to avoid initiating the transition from the crib while they are potty training, or when you’re moving to a new house. It might seem easiest not to move the crib, but that’s more change than most little people can handle all at once, and if you can hold off, it might go smoother.

If you’re transitioning your child to make room in the crib for a new sibling, be sure the move occurs a good three months before you expect the new baby. You want your toddler to be happy in their new bed before they see an interloper in their crib. If your child is not really ready to leave their crib, you can save all of you a lot of grief by borrowing a second crib for awhile, until they’re ready.

Ask for their input

If at all possible, let your child pick the bed. If someone is giving or loaning you a toddler bed, stress to your child that they get Cousin Jane’s bed now, because they are almost as big as Cousin Jane.

Related: What to do when your toddler needs a nap but won’t take one

What to do when you get the toddler bed

Once it arrives? Here’s your play-by-play. (And some of our favorite pieces to make it easier!)

Set it up

When the bed is delivered, let your child help unpack and assemble it. It’s a good idea if the toddler bed can be in the same place where the crib was. If your kids will be sharing the room, move the crib to a new place in the room if you can.

Little Partners MOD Toddler Bed

Little Partners

MOD Toddler Bed

$179

With high guardrails and level head and footboards at the top and bottom, this modern design keeps little ones safe and secure all the way around. It’s not only stylish, but a great transition as well.

Dream On Me Classic Design Toddler Bed

Dream On Me

Classic Design Toddler Bed

$99.99

This simple, budget-friendly option boasts nearly 8k five-star ratings with reviews that rave about everything from its sturdiness to the ease of assembly. It also comes in a dozen different colors and finishes to suit any style!

Make it cozy

Make their new bed cozy, like a little den. It’s important to make sure you use as many things from their crib as possible (blankets, for instance) so that they feel comfortable in the new bed. It’s fine to let them pick out new superhero sheets, but their crib blanket is what they’ll need most. Most kids love being surrounded by stuffed animals.

Be sure to use guardrails; in addition to being safer, they help kids feel more secure, so they’re less likely to keep getting out of bed.

Little Sleepies Large Cloud Blanket

Little Sleepies

Large Cloud Blanket

$68

Made from their signature bamboo viscose fabric, the supremely soft and snuggly blankets from Little Sleepies are perfect year round. They’re also a great option for little ones with sensitive skin and come in some of the most obsession-worthy prints around.

Try soothing sounds

If your bedtime routine does not include an audio element, consider adding it. Many toddlers fall asleep more easily while listening to familiar, calming music. Over time, as soon as they hear the music, it will become a cue for their body to begin settling into sleepiness.

Depending on the age of your child, there are also wonderful bedtime story and relaxation audios, but you’ll need to read reviews and listen in advance to be sure they’re age appropriate. The great thing about a story, even one that’s repeated every night, is that it keeps your child’s attention so they don’t get worried and keep coming to find you.

Act it out

Before the big night, act out the scenario with stuffed animals. Your toddler will watch avidly as the little elephant kisses mama or daddy goodnight and snuggles under the covers in their own bed. Have the parent stuffy sing the little elephant the same good night songs you sing to your little one. This will help them understand what’s going to happen.

What to do on the first night in your toddler’s new bed

Our best advice? Stay calm and keep reinforcing the limit that it’s bedtime. Here’s what else to know.

Start early

On the first night, initiate bedtime an hour earlier than usual. Explain to your child that they are going to sleep in their big bed tonight. Go through the normal bedtime routine. What you do next depends on your child.

Some kids can handle it if you sit in the doorway of the room, reading with a book light, while they fall asleep. But most kids need us to sit right next to them, on the bed. That way they feel your presence acutely, which will give them great reassurance.

Of course, if you need to cuddle them so they feel safe enough to fall asleep, by all means, do so. They don’t need to get out of bed to find you, so they’ll develop the habit of snuggling down and going to sleep, rather than of getting out of bed to look for you.

Stay consistent

If they try to engage you in conversation, just say, “We’ll talk tomorrow. It’s sleep time now.” Keep your attitude positive, respectful and detached. Be boring and consistent.

If they start to get out of bed, say, “It’s bedtime, you need to stay in bed.” Move closer so you can gently keep them in bed if they begin to get up. Stay calm, respectful, and empathic, as in, “It’s a big change, sleeping in your new bed. Soon you’ll be used to it.” But don’t let them get out of bed. You don’t want them developing that habit. Stay as close to the bed as you need to, to start. This eases the transition and lets your child learn to fall asleep in the new bed.

Are you developing a bad habit? No. This is a transition, and you will be able to ease out of it once your child is comfortable in the bed.

Related: The best OK to Wake clocks that will keep your toddler from waking you with the birds

Comfort them

If your child cries, comfort them. Some children are very frightened of their parent leaving and will cling to you. In that case, remind yourself that this fear needs expression, and don’t leave your child alone to cry. Instead, when they begin to cry, stay with them and let them cry as much as they need to. As they begin to stop, let them know that now you’ll be leaving. In other words, you don’t actually ever leave them crying. You simply remind them that you’ll be leaving, and then help them with the anxiety that surfaces. Stay as close as you need to, to comfort them—and move only as far away as you need to so that their fear comes up. After they “show you” their fear, it will evaporate. Yes, that may take a few days, but sooner or later they will no longer be frightened when you say you need to leave.

Is transitioning to a toddler bed a form of sleep training?

Is this sleep training? It would be more accurate to say that your child is having a hard time separating from you to fall asleep, so you are helping them to surface and dissolve the fears that are causing their separation anxiety.

Notice that you never leave them alone to cry. Instead, you announce your plan to leave and then help your child through their fearful reaction. Anxiety—another word for fear—is often at the root of children’s sleep issues. While there is nothing at all wrong with a toddler sharing their parents’ bed, children who can understand what you are telling them are certainly capable of sleeping alone, once they get some help with their fears.

Related: Dr. Harvey Karp’s secrets on sleep training a toddler

What to do during the transition to a toddler bed

Stay the course, mama.

Offer plenty of praise

Give lots of positive encouragement when your child does fall asleep in their own bed without trying to get out, and even for progress in the right direction. You can say, “I noticed that I only had to remind you twice to stay in bed last night. You must be so proud of yourself. Soon you will feel so good in your new bed that you’ll be able to snuggle right down and go to sleep all by yourself!”

Gradually move out of the room

If you’ve been lying on the bed until your child falls asleep, gradually move yourself over so you’re just holding hands and sitting in a chair. Then, stop holding their hand. Then, move your chair further away until you’re sitting in the doorway. This could take you a month, or it might just be a week.

Reconsider their bedtime

If your little one has a hard time falling asleep night after night, consider the possibility that they’re over-tired from falling asleep later than usual, and move their bedtime earlier.

Get their energy out

Toddlers have to pump themselves full of cortisol and adrenaline to stay up later than usual, and that makes it harder to fall asleep. Oddly enough, an earlier bedtime usually solves the problem when the child is just too wound-up to relax. Another helpful thing to try: roughhousing. Not right before bed, because it winds up the child, but earlier, before dinner or bath. Laughter reduces the stress hormones circulating in the body and helps the child relax at bedtime.

Last steps in the transition to a toddler bed

You’re almost there!

Leave for a few minutes

Within a few days of you sitting in the doorway, your child will be falling asleep without trying to get out of bed, and you can begin leaving for a few minutes, and then for longer periods of time. Just say you’ll be right back, and keep checking back. It helps to leave the chair in place, like a sentinel, to reassure your child if they look for you.

Offer nighttime books

If your toddler just can’t seem to fall asleep, you might consider letting them take books (not toys) to bed with them. If you have a nightlight or enough light from the hall, they can “read” themselves to sleep. Lots of adults need to read a bit before they fall asleep. It isn’t such a bad habit for your child to develop, as long as they actually fall asleep. Just be sure the light is very dim, so it doesn’t keep them up.

A version of this story was originally published on Sept. 1, 2017. It has been updated.