D&D 5e Attack Bonus Calculator
Calculate your character’s attack bonus with precision. Includes modifiers from ability scores, proficiency, magic items, and special features.
Your Attack Bonus Results
Comprehensive Guide to Calculating Attack Bonus in D&D 5e
Understanding how to calculate your attack bonus in Dungeons & Dragons 5th Edition is fundamental to effective combat. This guide covers all components that contribute to your attack rolls, from basic ability modifiers to advanced tactical considerations.
1. Core Components of Attack Bonus
The attack bonus calculation follows this basic formula:
Attack Bonus = Ability Modifier + Proficiency Bonus + Magic Bonus + Miscellaneous Bonuses
1.1 Ability Modifier
Your primary ability score (usually Strength for melee or Dexterity for ranged attacks) determines this modifier:
- 8-9: -1 modifier
- 10-11: +0 modifier
- 12-13: +1 modifier
- 14-15: +2 modifier
- 16-17: +3 modifier
- 18-19: +4 modifier
- 20: +5 modifier
1.2 Proficiency Bonus
This bonus increases as you gain levels, following this progression:
| Level Range | Proficiency Bonus |
|---|---|
| 1-4 | +2 |
| 5-8 | +3 |
| 9-12 | +4 |
| 13-16 | +5 |
| 17-20 | +6 |
2. Additional Modifiers
2.1 Magic Weapons
Magic weapons provide attack bonuses based on their rarity:
- +1 Weapon: +1 to attack and damage rolls
- +2 Weapon: +2 to attack and damage rolls
- +3 Weapon: +3 to attack and damage rolls
2.2 Feats and Class Features
Several character options provide attack bonuses:
- Fighting Styles: Archery (+2 to ranged attacks), Dueling (+2 to damage when wielding one weapon)
- Feats: Sharpshooter (-5 to attack for +10 damage), Great Weapon Master (-5 to attack for +10 damage)
- Class Features: Battle Master’s Precision Attack, Ranger’s Favored Enemy
3. Tactical Considerations
3.1 Advantage and Disadvantage
These mechanics significantly impact your attack probability:
- Advantage: Roll 2d20, take the higher result (equivalent to +5 bonus on average)
- Disadvantage: Roll 2d20, take the lower result (equivalent to -5 penalty on average)
3.2 Common Buff Spells
| Spell | Effect | Duration |
|---|---|---|
| Bless | +1d4 to attack rolls | 1 minute |
| Guidance | +1d4 to one ability check | 1 minute |
| Magic Weapon | +1 to attack and damage | 1 hour |
| Elemental Weapon | +1 to attack and damage, +1d4 damage | 1 hour |
4. Advanced Calculations
4.1 Probability Analysis
The probability of hitting an enemy depends on:
- Your total attack bonus
- The target’s Armor Class (AC)
- Whether you have advantage/disadvantage
For example, with a +7 attack bonus against AC 15:
- Normal: 50% chance to hit (need 8+ on d20)
- With Advantage: 74.5% chance to hit
- With Disadvantage: 25.5% chance to hit
4.2 Critical Hits
Critical hits occur on a natural 20 (or 19-20 with certain features). The probability is:
- 5% chance normally
- 9.75% chance with advantage
- 0.25% chance with disadvantage
5. Common Mistakes to Avoid
Even experienced players sometimes make these errors:
- Forgetting proficiency: Always add your proficiency bonus if proficient with the weapon
- Double-counting modifiers: Don’t add the same bonus twice (e.g., from two different sources)
- Ignoring weapon properties: Finesse weapons can use STR or DEX, versatile weapons change damage die
- Misapplying advantage: Advantage doesn’t stack – multiple sources still only give you one advantage
6. Optimizing Your Attack Bonus
To maximize your attack effectiveness:
- Focus on increasing your primary ability score (STR or DEX)
- Choose feats that enhance attacks (Sharpshooter, Crossbow Expert)
- Use magic items that provide attack bonuses
- Coordinate with your party for buff spells
- Position yourself to gain advantage when possible
For martial characters, the difference between hitting on a 9 vs. an 8 (just +1 to attack) can increase your damage output by 10-15% over a full adventure day.
Frequently Asked Questions
Does a +1 weapon stack with a +1 from Magic Weapon spell?
No. The bonuses from multiple magic effects don’t stack if they’re from the same source type (both are enhancement bonuses to attack rolls).
How does the Archery fighting style work with Sharpshooter?
The Archery style gives you +2 to ranged attack rolls. If you use Sharpshooter’s -5 to hit for +10 damage, your total modifier would be: Ability + Proficiency + 2 (Archery) – 5 (Sharpshooter) + Magic bonuses.
Can I use Dexterity for melee attacks with a longsword?
Only if the longsword has the finesse property (which it doesn’t by default) or you’re using a feature that allows it (like the Duelist fighting style from certain homebrew content).
Official Resources and Further Reading
For authoritative information on attack bonuses in D&D 5e, consult these official sources:
- Official D&D 5e Rules (Wizards of the Coast)
- D&D Beyond Character Builder and Rules Reference
- Role-playing Games Stack Exchange (Community Q&A)
For academic perspectives on game mechanics and probability in tabletop RPGs: