Field notes
Adventurers are, at heart, people who get hurt for a living. The rest rules are how the game lets you patch yourself up between disasters without making every fight to the death the last fight you ever have.
A Short Rest is an hour of taking it easy: eating, chatting, binding a cut, reading the map upside down. When it ends you may spend some of your Hit Point Dice. Roll one, add your Constitution modifier, and get that many hit points back (always at least 1 per die). You can roll, look at the result, and decide whether to spend another. Some class features, such as a warlock's spell slots or one use of a fighter's Second Wind, also come back after a Short Rest.
Hit Point Dice are your private reserve of healing. You have one for each level you've reached, and the size of the die comes from your class, so the sturdy classes heal more per die than the bookish ones. Spend them wisely. Once they're gone, they don't come back until a Long Rest.
A Long Rest is a proper night: at least 8 hours, with 6 or more of them spent asleep and no more than 2 on light jobs like keeping watch. When it ends you get every hit point back, every spent Hit Point Die back, any lowered ability scores or hit point maximum restored, and one level of Exhaustion removed. Spellcasters get their spell slots back too, which is why wizards are so keen on bedtime.
Rests can be ruined. A Short Rest is spoiled if you roll Initiative (a fight starts), cast a spell that isn't a cantrip, or take damage, and you get nothing from it. A Long Rest is broken by the same things, or by an hour of walking or hard work. If you'd managed at least an hour before the trouble, you still get a Short Rest's worth. You can also pick the Long Rest back up afterwards, but each interruption adds an hour to it.
You can't simply sleep around the clock to heal twice. After a Long Rest, you have to wait at least 16 hours before you can start another. Note too that temporary hit points (a shield of extra padding some spells and features give you) vanish at the end of a Long Rest if you haven't lost them already.
The DM keeps an eye on all this, because rests are where an adventure breathes. Push on without resting and the next fight is scarier. Rest in the wrong place and the next fight comes to you.
The short version
Short Rest: an hour off, roll some Hit Point Dice, heal a bit. Long Rest: a full night, get everything back. Don't let a fight, a spell or a stab in the back interrupt either.
At the table, the DM decides whether it's safe enough to rest. If you're down to your last few hit points and the DM goes quiet when you ask, that's your answer.
Sources
- D&D Beyond, Free Rules (2024), "Rules Glossary"
- D&D Beyond, Free Rules (2024), "Playing the Game"
- D&D Beyond, Free Rules (2024), "Character Creation"
- RPGBot, "DnD 2024 Transition Guide and Change Log"
- D&D Beyond, Basic Rules (2014), "Adventuring"
- D&D Beyond, Free Rules (2024), "Character Classes"
- D&D Beyond, Free Rules (2024), "Spells"
- Dungeons and Dragons Fan, "The New 2024 DnD Exhaustion Rule Explained"