Level 1 Divination (Bard, Cleric, Druid, Paladin, Ranger, Sorcerer, Warlock, Wizard). Concentration · Ritual. Full SRD 5.2.1 text below, then World Seed comparisons computed from all 339 SRD spells.
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 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.
SRD 5.2.1, page 123
World Seed notes: Detect Magic among level 1 spells
Among the 57 level 1 spells in SRD 5.2.1
Share
Detect Magic
Need Concentration
32%
Yes
Can be cast as a Ritual
19%
Yes
Need a Material component
51%
No
Casting time “Action or Ritual”
12%
Yes
School Divination
12%
Yes
Class lists
Detect Magic is on 8 class lists in its description. How many level 1 spells each of those classes has in SRD 5.2.1:
Changes made: SRD 5.2.1 text was extracted from the official PDF and converted into structured data (fields such as size, type, Challenge Rating, XP and spell level were split out; line-break hyphenation was removed; tables were reformatted). Spell description reformatted; level, concentration, ritual, component and class-list comparisons added (computed from SRD data). Original rules text is reproduced as published. Commentary, tactics, encounter suggestions and other material marked “World Seed notes” are original to world.hueseed.com and are not part of the SRD.
World Seed is 5E compatible. More on sources and licences: Licences.