How to Calculate Attack Bonus and Spell Save DC in 5e (With Examples)

Printable: all 15 conditions, saving throws, actions, rests and cover on 7 illustrated cheat sheet pages. Get the PDF ($4.99)

Your character sheet has three numbers you’ll use every fight: your attack bonus, your spell attack bonus and your spell save DC. They’re all built from the same two pieces: an ability modifier and your Proficiency Bonus.

The three formulas

NumberFormulaUsed when
Weapon attack bonusability modifier + Proficiency Bonus*You attack with a weapon or an Unarmed Strike
Spell attack bonusspellcasting ability modifier + Proficiency BonusA spell says “make a spell attack”
Spell save DC8 + spellcasting ability modifier + Proficiency BonusA spell makes the target roll a saving throw

*Only if you’re proficient with the weapon. Without proficiency you add just the ability modifier.

Step 1: which ability modifier?

For weapons:

AttackAbility
Melee weapon or Unarmed StrikeStrength
Ranged weapon (bow, crossbow, sling)Dexterity
Finesse weapon (dagger, rapier, shortsword, scimitar…)Strength or Dexterity, your choice

With a Finesse weapon you must use the same modifier for the attack and the damage.

For spells, your class decides the ability:

Spellcasting abilityClasses
IntelligenceWizard
WisdomCleric, Druid, Ranger
CharismaBard, Paladin, Sorcerer, Warlock

Your modifier comes from the score: subtract 10 and halve, rounding down. A 16 is +3, a 14 is +2, a 9 is −1. More in ability scores explained.

Step 2: your Proficiency Bonus

Character levelProficiency Bonus
1–4+2
5–8+3
9–12+4
13–16+5
17–20+6

It goes by total character level, not class level. Details in proficiency bonus explained.

Worked examples

Level 1 fighter, Strength 16, longsword

Level 5 rogue, Dexterity 18, rapier (Finesse)

Level 5 wizard, Intelligence 18

Hitting: attack bonus vs Armor Class

Roll a d20 and add your attack bonus. If the total equals or beats the target’s Armor Class, you hit. A +5 against AC 13 hits on a roll of 8 or more, so 65% of the time. Want the exact odds, with Advantage or cover? Try the free Hit Chance Calculator.

With a spell save DC it’s the other way round: the target rolls the saving throw, and the spell works if they fail to reach your DC. Which kind of spell is better against which monster is in spell attacks vs saving throws.

Common mistakes

Too much math? The Spell Save DC Calculator works out your DC and spell attack bonus for you.

Rules summarized from the System Reference Document 5.2 (CC BY 4.0).

Frequently asked questions

How do you calculate your attack bonus in 5e?

Add your ability modifier to your Proficiency Bonus, if you're proficient with the weapon. Use Strength for melee weapons, Dexterity for ranged weapons, and either for Finesse weapons. A level 1 fighter with Strength 16 (+3) and a longsword has +3 + 2 = +5.

What is the spell save DC formula?

8 + your spellcasting ability modifier + your Proficiency Bonus. A level 1 wizard with Intelligence 16 (+3) has a spell save DC of 8 + 3 + 2 = 13.

What is my spellcasting ability?

It depends on your class: Intelligence for wizards, Wisdom for clerics, druids and rangers, Charisma for bards, paladins, sorcerers and warlocks.

Do you add proficiency to damage?

No. Damage rolls add your ability modifier (the same one you used for the attack), but not your Proficiency Bonus.

What if I'm not proficient with a weapon?

You can still attack with it, but you only add your ability modifier, not your Proficiency Bonus.

Useful at the table

As an Amazon Associate we earn from qualifying purchases, at no extra cost to you. More about this.

← All articles

Free: Class Quick Reference

All 12 Player's Handbook classes on one printable page each: levels 1 to 5, subclasses, a standard array and the mistakes new players make. Leave your email and the 12-page PDF is yours, plus the occasional new guide.