5e SRD >Spells >

Detect Magic

1st-level divination (ritual)

Casting Time:1 action
Range:self
Components:V, S
Duration:Concentration, up to 10 minutes

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.

3rd Party Content

Source EE:SotA

The following is content created by a publisher other than Wizards of the Coast.

At Higher Levels. When you cast this spell using a spell slot of 2nd level or higher, the spell no longer requires concentration. If you cast this spell using a spell slot of 3rd level or higher, the duration increases to 1 hour. If you use a spell slot of 4th level or higher, the duration is 8 hours.