How attacks work in 5e (2024 rules)
Use this when you attack with a weapon, an Unarmed Strike, or a spell.“An attack roll is a D20 Test that represents making an attack with a weapon, an Unarmed Strike, or a spell.”
How to do it
What do you add to an attack roll?
A weapon attack is an attack roll made with a weapon, and a spell attack is one made as part of a spell or another magical effect. Add the ability modifier. Add your Proficiency Bonus when you are proficient with the thing you are using. An Unarmed Strike states its own bonus.
“A weapon attack is an attack roll made with a weapon.”
“A spell attack is an attack roll made as part of a spell or another magical effect.”
“Add the modifier when you make a D20 Test with the corresponding ability or when a rule asks you to do so.”
“If you have proficiency with something, you can add your Proficiency Bonus to any D20 Test you make using that thing.”
“Your bonus to the roll equals your Strength modifier plus your Proficiency Bonus. On a hit, the target takes Bludgeoning damage equal to 1 plus your Strength modifier.”
Example. 1 plus a Strength modifier of 3 equals 4 Bludgeoning damage.
Attack Roll, Weapon Attack, Spell Attack, Ability Score and Modifier, Proficiency, Unarmed Strike
Advantage and Disadvantage
Roll two dice and keep one. Advantage and Disadvantage on the same roll cancel, and a second Advantage or Disadvantage adds nothing.
“If you have Advantage on a D20 Test, roll two d20s, and use the higher roll. A roll can’t be affected by more than one Advantage, and Advantage and Disadvantage on the same roll cancel each other.”
“If you have Disadvantage on a D20 Test, roll two d20s and use the lower roll. A roll can’t be affected by more than one Disadvantage, and Advantage and Disadvantage on the same roll cancel each other.”
Compare the total with Armor Class
Armor Class is the target number for the attack roll. The attack hits when the d20 plus its bonus reaches that number. A Critical Hit is the exception the rules state on their own.
“An Armor Class (AC) is the target number for an attack roll.”
“Your base AC calculation is 10 plus your Dexterity modifier.”
Example. A +5 to hit against Armor Class 15 hits on a roll of 10 or more.
Apply cover
If the target is behind more than one degree of cover, use only the most protective one.
“There are three degrees of cover, each of which provides a different benefit to a target: Half Cover (+2 bonus to AC and Dexterity saving throws), Three-Quarters Cover (+5 bonus to AC and Dexterity saving throws), and Total Cover (can’t be targeted directly). If behind more than one degree of cover, a target benefits only from the most protective degree.”
A twenty on the die is a Critical Hit
Roll the attack's damage dice twice, add those dice together, then add the modifiers.
“If you roll a 20 on the d20 for an attack roll, you score a Critical Hit, and the attack hits regardless of any modifiers or the target’s AC. A Critical Hit lets you roll extra dice for the attack’s damage against the target. Roll all of the attack’s damage dice twice and add them together. Then add any relevant modifiers.”
Example. Damage dice showing 6 and 4, rolled twice, are 6 plus 4 plus 6 plus 4, which equals 20. A modifier of 3 then makes 20 plus 3, which equals 23.
What do damage types and Resistance do?
A damage type has no rules of its own; Resistance, Vulnerability, and Immunity use it. Resistance halves that damage, rounded down, and Vulnerability doubles it, each once. Immunity means it does not affect you.
“Damage represents harm that causes a creature or an object to lose Hit Points.”
“A damage roll is a die roll, adjusted by any applicable modifiers, that deals damage to a target.”
“Damage types have no rules of their own, but other rules, such as Resistance, rely on the types.”
“If you have Resistance to a damage type, damage of that type is halved against you (round down). Resistance is applied only once to an instance of damage.”
“If you have Vulnerability to a damage type, damage of that type is doubled against you. Vulnerability is applied only once to an instance of damage.”
“If you have Immunity to a damage type or a condition, it doesn’t affect you in any way.”
“Whenever you divide or multiply a number in the game, round down if you end up with a fraction, even if the fraction is one-half or greater.”
Example. 11 damage with Resistance is halved and rounded down to 5. 7 damage with Vulnerability is doubled to 14.
Damage Types, Damage, Damage Roll, Resistance, Vulnerability, Immunity, Round Down
What can follow
Leads to How do saving throws and ability checks work?, How does cover work?, How do critical hits work?, How does grappling work?, What happens when you drop to 0 Hit Points?, How do opportunity attacks work?
Reached from What can I do on my turn?, How do saving throws and ability checks work?, How does grappling work?, How do you cast a spell?, How do opportunity attacks work?, How do you work out your spell save DC and spell attack bonus?, How do Advantage and Disadvantage work?, How does cover work?, How do critical hits work?
Use it at your table
Gatherune’s D&D 2024 character sheets show the rules these steps cite as cards, in the SRD’s own words.