How hiding works in 5e (2024 rules)
Use this when you take the Hide action, or when you need to know what unseen means.“With the Hide action, you try to hide yourself.”
How to do it
How do you hide?
You must be Heavily Obscured or behind Three-Quarters Cover or Total Cover, and out of every enemy's line of sight.
“To do so, you must succeed on a DC 15 Dexterity (Stealth) check while you’re Heavily Obscured or behind Three-Quarters Cover or Total Cover, and you must be out of any enemy’s line of sight; if you can see a creature, you can discern whether it can see you.”
“You have the Blinded condition while trying to see something in a Heavily Obscured space.”
“Three-Quarters Cover (+5 bonus to AC and Dexterity saving throws), and Total Cover (can’t be targeted directly).”
On a success you are Invisible
Write down the check's total. That total is the Difficulty Class for a creature to find you.
“On a successful check, you have the Invisible condition while hidden. Make note of your check’s total, which is the DC for a creature to find you with a Wisdom (Perception) check.”
You stop being hidden
Any one of these ends it at once.
“You stop being hidden immediately after any of the following occurs: you make a sound louder than a whisper, an enemy finds you, you make an attack roll, or you cast a spell with a Verbal component.”
What does the Invisible condition do?
If a creature can see you anyway, you do not get the attack benefit against that creature.
“If you’re Invisible when you roll Initiative, you have Advantage on the roll.”
“You aren’t affected by any effect that requires its target to be seen unless the effect’s creator can somehow see you. Any equipment you are wearing or carrying is also concealed.”
“Attack rolls against you have Disadvantage, and your attack rolls have Advantage. If a creature can somehow see you, you don’t gain this benefit against that creature.”
Obscured spaces
A Heavily Obscured space gives you the Blinded condition while you try to see something in it. A Lightly Obscured space gives Disadvantage on Wisdom (Perception) checks to see something in it.
“You have the Blinded condition while trying to see something in a Heavily Obscured space.”
“You have Disadvantage on Wisdom (Perception) checks to see something in a Lightly Obscured space.”
What can follow
Leads to What does each condition do?, How do surprise and initiative work?, How do saving throws and ability checks work?
Reached from What can I do on my turn?, How do saving throws and ability checks work?, How do surprise and initiative work?, What does each condition do?, How do Advantage and Disadvantage work?, How does cover work?
Use it at your table
Gatherune’s D&D 2024 character sheets show the rules these steps cite as cards, in the SRD’s own words.