D&D Attack Roll Roller (To Hit)

Calculate d20 attack rolls with advantage, disadvantage, and modifiers. Detect natural 20 critical hits and natural 1 automatic misses instantly.

← Back to D&D Tools Hub

Roll Settings

Total Attack Bonus: +6

Attack bonus = ability modifier + proficiency + other bonuses.

Result

Click Roll Attack to start.

d20 Roll -
Second Die -
Total + Bonus -
Outcome Awaiting roll

Recent Attack Rolls

History keeps your last eight dnd attack rolls with total, roll type, and crit detection.

No rolls yet. Roll once to start tracking.

Need a Skill Check?

Use our D&D 5e Skill Check Roller to roll ability checks fast with advantage/disadvantage and a clear breakdown vs DC.

How to Use the D&D Attack Roller

  1. Select whether the roll is normal, with advantage, or disadvantage. Advantage rolls two d20 and keeps the highest, while disadvantage keeps the lowest.
  2. Enter your ability modifier (STR for melee, DEX for ranged or finesse), proficiency bonus, and any extra bonus from a magic weapon or fighting style.
  3. Optional: add the target armor class to instantly see if the attack hits.
  4. Press Roll Attack or hit the space bar to roll the d20. The app displays both dice, your attack bonus, and the final result.
  5. Review the outcome banner to check for natural 20 critical hits, natural 1 automatic misses, or simple hit/miss information.

Attack Roll Formula (D&D 5e)

Attack Roll Total = d20 + Ability Modifier + Proficiency Bonus + Other Bonuses

If you enter a Target AC, the attack is a Hit when Total ≥ AC. A natural 20 is always a hit and a critical hit. A natural 1 always misses.

Advantage / Disadvantage

  • Advantage: roll 2d20 and keep the higher die.
  • Disadvantage: roll 2d20 and keep the lower die.

Quick Examples

  • Attack bonus: STR +3 and proficiency +3 means +6 total attack bonus.
  • Hit check: if you roll 9 on the d20 and have +6, your total is 15—this hits AC 15.

Features for Tabletop Combat

  • Instant Advantage Toggle: Quickly swap between normal, advantage, and disadvantage to model faerie fire, reckless attack, or poisoned conditions.
  • Transparent Math: Ability modifier, proficiency bonus, and magic bonuses are displayed separately so you can explain the roll to your Dungeon Master.
  • Critical Tracking: Natural 20 critical hits and natural 1 automatic misses are detected automatically and saved in the roll history.
  • Target AC Check: Enter an armor class to see “Hit” or “Miss” feedback using your total attack roll.
  • Roll History: Last eight rolls show the raw d20, modifiers applied, and whether the attack was made with advantage.

Game Rules for D&D Attack Rolls

An attack roll in D&D 5e uses a d20, adds your ability modifier and proficiency bonus, and compares the sum to the target's armor class. Your attack bonus (also called to hit bonus) equals your ability modifier + proficiency bonus + other bonuses from magic weapons or fighting styles. Martial classes typically use Strength for melee and Dexterity for ranged or finesse weapons. Spell attacks add the spellcasting modifier listed for your class. For example, a level 5 fighter with +3 Strength and +3 proficiency bonus swings a longsword with a +6 attack bonus. When the D&D dice roller (d4–d100) says natural 20, it always hits and is a critical. A natural 1 automatically misses regardless of bonuses.

This tool also works as a to hit calculator: enter your attack bonus and a target AC to instantly see hit/miss. For spell attack rolls, use your spellcasting ability modifier (INT for wizards, WIS for clerics, CHA for warlocks) as the ability modifier. Advantage and disadvantage are the most common situational modifiers in D&D. Rolling with advantage means you roll two d20s and keep the higher result (great weapon master + Reckless Attack is a classic combo). Disadvantage keeps the lower result and represents conditions such as being blinded or restrained. The d20 attack roller above automates those comparisons and shows both dice so you can log the attempt in your session notes.

Examples and Combat Tips

Need inspiration? A +7 longbow specialist attacking an AC 16 ogre has to roll 9 or higher to hit. Add advantage from the faerie fire spell and the odds jump dramatically. A warlock using agonizing blast would enter their Charisma modifier as the ability score, toggle disadvantage if they are within 5 feet, and the history log will capture each eldritch blast beam. Mix this tool with the standard dice roller for damage or keep it open next to digital character sheets. Because results stay on screen, it also helps DMs roll monster attacks without thumbing through dice at the table.