How to Calculate Attack Bonus and Spell Save DC in 5e (With Examples)
20 November 2026
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
| Number | Formula | Used when |
|---|---|---|
| Weapon attack bonus | ability modifier + Proficiency Bonus* | You attack with a weapon or an Unarmed Strike |
| Spell attack bonus | spellcasting ability modifier + Proficiency Bonus | A spell says “make a spell attack” |
| Spell save DC | 8 + spellcasting ability modifier + Proficiency Bonus | A 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:
| Attack | Ability |
|---|---|
| Melee weapon or Unarmed Strike | Strength |
| 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 ability | Classes |
|---|---|
| Intelligence | Wizard |
| Wisdom | Cleric, Druid, Ranger |
| Charisma | Bard, 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 level | Proficiency 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
- Attack bonus: +3 (Strength) + 2 (proficiency) = +5
- Damage: 1d8 + 3
Level 5 rogue, Dexterity 18, rapier (Finesse)
- Attack bonus: +4 (Dexterity) + 3 (proficiency) = +7
- Damage: 1d8 + 4, plus Sneak Attack when it applies
Level 5 wizard, Intelligence 18
- Spell attack bonus: +4 + 3 = +7 (for spells like fire bolt)
- Spell save DC: 8 + 4 + 3 = 15 (for spells like fireball)
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
- Adding proficiency to damage. Damage gets the ability modifier only.
- Using Strength for a bow. Ranged weapons use Dexterity.
- Forgetting to update at level 5, 9, 13 and 17. When your Proficiency Bonus goes up, all three numbers go up.
- Forgetting magic items. A +1 weapon adds 1 to attack and damage. Items that add to spell attacks or save DCs say so.
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
- Spell cards Range, duration and concentration without flipping pages.
- Player's Handbook (2024) The full rules text when a ruling needs settling.
- A good polyhedral dice set Every d4 to d20 you need, and a second set for advantage rolls.
As an Amazon Associate we earn from qualifying purchases, at no extra cost to you. More about this.