Detect Magic is a level 1 Divination spell in D&D 5e on the Bard, Cleric, Druid, Paladin, Ranger, Sorcerer, Wizard spell lists. It has a casting time of 1 action, a range of self and a duration of up to 10 minutes.
Casting TimeSRD
1 action
RangeSRD
Self
DurationSRD
Up to 10 minutes
10:00
ComponentsSRD
DescriptionSRD
For the duration, you sense the presence of magic within 30 feet of you. If you sense magic in this way, you can use your action to see a faint aura around any visible creature or object in the area that bears magic, and you learn its school of magic, if any.
The spell can penetrate most barriers, but it is blocked by 1 foot of stone, 1 inch of common metal, a thin sheet of lead, or 3 feet of wood or dirt.


Divination
Bard
Cleric
Druid
Paladin
Ranger
Sorcerer
Wizard


