# Detect Magic
*1st-level, Divination (ritual)*
- **Casting time:** 1 Action unless cast as a ritual
- **Range:** Self (30-foot Sphere)
- **Components:** V, S
- **Duration:** Concentration, up to 10 minutes
For the duration, you sense the presence of magical effects within 30 feet of yourself. If you sense such effects, you can take the [Magic](Mechanics/CLI/rules/actions.md#Magic) action to see a faint aura around any visible creature or object in the area that bears the magic, and if an effect was created by a spell, you learn the spell's "school of magic".
The spell is blocked by 1 foot of stone, dirt, or wood; 1 inch of metal; or a thin sheet of lead.
**Classes**: [Sorcerer](Mechanics/CLI/lists/list-spells-classes-sorcerer.md); [Cleric](Mechanics/CLI/lists/list-spells-classes-cleric.md); [Wizard](Mechanics/CLI/lists/list-spells-classes-wizard.md); [Warlock](Mechanics/CLI/lists/list-spells-classes-warlock.md); [Rogue (Arcane Trickster)](Mechanics/CLI/lists/list-spells-classes-arcane-trickster-xphb.md "subclass=XPHB;class=XPHB"); [Bard (College of Lore)](Mechanics/CLI/lists/list-spells-classes-college-of-lore-xphb.md "subclass=XPHB;class=XPHB"); [Bard](Mechanics/CLI/lists/list-spells-classes-bard.md); [Druid](Mechanics/CLI/lists/list-spells-classes-druid.md); [Wizard (Diviner)](Mechanics/CLI/lists/list-spells-classes-diviner-xphb.md "subclass=XPHB;class=XPHB"); [Fighter (Eldritch Knight)](Mechanics/CLI/lists/list-spells-classes-eldritch-knight-xphb.md "subclass=XPHB;class=XPHB"); [Ranger](Mechanics/CLI/lists/list-spells-classes-ranger.md); [Paladin](Mechanics/CLI/lists/list-spells-classes-paladin.md)
*Source: Player's Handbook (2024) p. 262. Available in the <span title='Systems Reference Document (5.2)'>SRD</span> and the Free Rules (2024)*