Opportunity Attacks in 5e Explained

An opportunity attack in 5e is a single melee attack you make with your reaction when a hostile creature you can see moves out of your reach. Moving around inside your reach does not trigger it. Taking the Disengage action, teleporting, or being pushed or pulled by someone else lets a creature leave without provoking one.

Try it: Roll a d20 →

What is an opportunity attack in 5e?

An opportunity attack is a free swing at an enemy who tries to walk away from you. When a hostile creature that you can see moves out of your reach, you can use your reaction to make one melee attack against it. The attack happens right before the creature leaves your reach, so if it drops the creature to 0 hit points, it never gets away.

You roll it like any other melee attack: a d20 plus your attack bonus against the target's AC. The rule works the same way in the 2014 and 2024 Player's Handbooks. In the 2024 rules the attack can be made with a melee weapon or an unarmed strike.

What triggers an opportunity attack?

Three things must all be true:

  1. The creature is hostile to you and you can see it.
  2. It moves from inside your reach to outside it.
  3. It moves using its own movement, its action or its reaction.

Your reach is normally 5 feet. With a reach weapon such as a glaive, halberd, pike or whip, it is 10 feet, so the creature has to move more than 10 feet from you to provoke. Moving around you while staying inside your reach is safe.

What does and doesn't provoke an opportunity attack?

SituationProvokes?Why
Walking out of an enemy's reachYesThe standard trigger
Moving away after the Disengage actionNoDisengage stops opportunity attacks for the rest of your turn
Teleporting (Misty Step, Thunder Step)NoTeleporting isn't moving out of reach
Being shoved, pushed by Thunderwave or pulled by a spellNoForced movement doesn't use your movement, action or reaction
Fleeing because of Dissonant Whispers or CommandYesThe spell makes the target use its own reaction or movement
Moving around inside the enemy's reachNoYou never leave its reach
Casting a spell or making a ranged attack next to an enemyNoRanged attacks within 5 feet get disadvantage instead
Standing up from proneNoNo movement out of reach
Leaving the reach of an enemy that can't see youNoThe attacker must see you

How does the Disengage action work?

If you take the Disengage action, your movement doesn't provoke opportunity attacks for the rest of that turn. The cost is your action, which usually means skipping your attack or spell. Some characters can Disengage cheaply:

  • Rogues: Cunning Action at level 2 lets them Disengage as a bonus action.
  • Monks: spending a focus point (2014: a ki point) on Step of the Wind lets them Disengage as a bonus action.
  • Goblins: Nimble Escape (2014 race) gives a bonus action Disengage or Hide.
  • 2024 Rogues: the Withdraw option of Cunning Strike moves you half your speed without provoking, paid for with a Sneak Attack die. See Sneak Attack.

How does the reaction limit affect opportunity attacks?

An opportunity attack uses your reaction. You get one reaction per round, and it comes back at the start of your turn. So if three goblins run past you, you can only hit one of them. Spending your reaction on an opportunity attack also means you can't cast Shield, Hellish Rebuke or Counterspell until your next turn, so casters sometimes skip the swing on purpose.

Opportunity attacks are often the only time you attack on another creature's turn. That is why Rogues love them: Sneak Attack is once per turn, so an opportunity attack can add a second helping of Sneak Attack damage in the same round. Order still matters; if the fleeing enemy acts before you in the initiative order, you get the swing on its turn.

Which feats change opportunity attacks?

Sentinel

Sentinel turns a character into a wall. When you hit with an opportunity attack, the target's speed drops to 0 for the rest of the turn. You can also attack creatures near you that try to Disengage or attack your allies. The 2014 and 2024 versions word this differently, but both stop enemies from simply walking past your frontliner.

War Caster

When a creature provokes an opportunity attack from you, War Caster lets you cast a spell at it instead of making a melee attack. The spell must take one action to cast and target only that creature. A cantrip like Shocking Grasp or Chill Touch is a common pick.

Polearm Master

Polearm Master adds a second trigger: a creature that enters your reach also provokes, as long as you hold a qualifying weapon such as a glaive, halberd, pike, quarterstaff or spear.

Mobile

In the 2014 rules, Mobile means a creature you made a melee attack against can't make opportunity attacks against you for the rest of your turn. It's a favorite for hit-and-run Monks and Rogues.

Can you grapple to stop enemies from fleeing?

Yes, and it's often better than an opportunity attack. A grappled creature's speed is 0, so it can't walk away at all. See grappling and shoving for how that works in both rule sets.

How do you avoid opportunity attacks without Disengage?

Disengage costs your action, so it pays to know the other options:

  • Stay in reach: move around the enemy rather than away from it, then step out of reach of a different enemy that has already used its reaction.
  • Let an ally move you: a friendly shove or a spell that pushes you counts as forced movement, which never provokes.
  • Teleport: Misty Step costs a bonus action and a spell slot but gets you out cleanly.
  • Make them waste the reaction: once an enemy has used its reaction on something else, it can't take an opportunity attack until its next turn.
  • Drop or disable the enemy: an incapacitated creature can't take reactions at all.

Monsters follow the same rules, so the same tricks work against your party. A big monster with a 10-foot reach is especially hard to slip away from.

FAQ

Does casting a spell provoke an opportunity attack in 5e?

No. Only leaving an enemy's reach provokes. Casting a ranged spell next to an enemy gives you disadvantage on the attack roll, but it does not provoke.

Does standing up from prone provoke an opportunity attack?

No. Standing up costs half your movement but does not move you out of anyone's reach, so it never provokes.

How many opportunity attacks can you make per round?

One, because it uses your reaction, and you get one reaction per round. It comes back at the start of your next turn.

Can you make an opportunity attack with a ranged weapon?

No. It must be a melee attack, such as a melee weapon or an unarmed strike. The War Caster feat lets you cast a spell instead.

Does Misty Step provoke opportunity attacks?

No. Teleporting does not count as moving out of reach, so Misty Step and similar spells never provoke.

Related

Wizards of the Coast LLC is the trademark holder for Dungeons & Dragons, Wizards of the Coast, and their respective logos worldwide.

Wizards of the Coast LLC does not support, endorse, approve, or have any affiliation with DnD Dice Roller. According to the Wizards of the Coast LLC's Fan Site Policy, DnD Dice Roller may use its trademarks and other intellectual property. Please visit Wizards of the Coast's website at www.wizards.com if you want additional information about the company, its trademarks, or other intellectual property.

Contains content from the System Reference Document 5.1 and 5.2 by Wizards of the Coast LLC, used under the Creative Commons Attribution 4.0 International License.