PokéBase - Pokémon Q&A
0 votes
7,527 views

how does the game add up all the power and defense and attack

by
edited by
The answer needs to be updated (with working images) because this might have better SEO rankings than other damage calculation questions.

2 Answers

2 votes
 
Best answer

The easiest way to calculate damage is by using a damage calculator. It's by far the most efficient and fastest way to get damage outputs from every Pokémon.

Besides the calculator, a simple mathematical expression can be used to calculate total damage. This would be a rough figure (due to weird rounding mechanics) and for an exact value, using a damage calculator is preferred.

Source
These are the modifiers that you usually need to worry about.

  • Level is the level of the attacking Pokémon.
  • A is the effective physical Attack stat of the attacking Pokémon if the used move is physical, or the effective Special Attack stat of the attacking Pokémon if the used move is special (ignoring negative stat stages for a critical hit).
  • D is the effective physical Defense stat of the target if the used move is a physical move or a special move that uses the target's Defense stat, or the effective Special Defense of the target if the used move is another special move (ignoring positive stat stages for a critical hit).
    Read this article for more information about how stat modifiers affect damage
  • Power is the effective power of the used move.
  • STAB is the same-type attack bonus. This is equal to 1.5 if the move's type matches any of the user's types, 2 if the user of the move additionally has Adaptability, and 1 otherwise or if the attacker and/or used move is typeless. If the used move is a combination Pledge move, STAB is always 1.5 (or 2 if the user's Ability is Adaptability).
  • Type is the type effectiveness. This can be 0.25, 0.5 (not very effective); 1 (normally effective); 2, or 4 (super effective), depending on both the move's and target's types. A 0.125 or 8 can potentially be obtained on a Pokémon under the effect of Forest's Curse or Trick-or-Treat. If the used move or the target is typeless, Type is always 1. Decimals are rounded down to the nearest integer.

So if you want a damage formula that's extremely oversimplified but is still good enough like 67% of the time, you can use

damage = level * power * attack * STAB * type / (125 * defense)

These are the rest of the modifiers that exist but are often irrelevant.

  • Targets are 0.75 (0.5 in Battle Royals) if the move has more than one target when the move is executed, and 1 otherwise.
  • PB is 0.25 (0.5 in Generation VI) if the move is the second strike of Parental Bond, and 1 otherwise.
  • Weather is 1.5 if a Water-type move is being used during rain or a Fire-type move during harsh sunlight, 0.5 if a Water-type move is used during harsh sunlight or a Fire-type move during rain, and 1 otherwise or if any Pokémon on the field have the Ability Cloud Nine or Air Lock.
  • Critical is 1.5 (2 in Generation V) for a critical hit, and 1 otherwise. Decimals are rounded down to the nearest integer. It is always 1 if the target's Ability is Battle Armor or Shell Armor or if the target is under the effect of Lucky Chant.
  • random is a random factor. Namely, it is recognized as a multiplication from a random integer between 85 and 100, inclusive, then divided by 100. Decimals are rounded down to the nearest integer.
    note: random belongs to [0.85, 1.00]. The output would be a decimal multiplied by 0.85 and 1.00 both, and the definite damage would be an integer value between them. This depends on luck.
  • Burn is 0.5 if the attacker is burned, its Ability is not Guts, and the used move is physical (other than Facade from Generation VI onward), and 1 otherwise.
  • other is 1 in most cases, and a different multiplier when specific interactions of moves, Abilities, or items take effect.
  • ZMove is 0.25 if the move is a Z-Move, Max Move, or G-Max Move being used into a protection move (Protect, Detect, King's Shield, Spiky Shield, Mat Block, Baneful Bunker, or Obstruct), the move is Clangorous Soulblaze being used into Wide Guard, or the move is a Z-Move, Max Move, or G-Max Move given priority by Prankster or Gale Wings being used into Quick Guard, and 1 otherwise.

If you want an example, let's say you use a physical move with 100 base power, your Pokemon is level 100 and has 167 physical attack, and the target has 156 physical defense. There's no STAB and it's neutrally effective. If you plug these numbers into the extremely oversimplified formula that's often good enough, you get

damage = 100 * 100 * 167 * 1 * 1 / (125 * 156) = 86 HP

And Showdown's damage calculator says the damage range is 77 to 91 HP, so the oversimplified formula was pretty close.

by
edited ago by
It's probably worth mentioning that https://web.archive.org/web/20241226231016/https://www.trainertower.com/dawoblefets-damage-dissertation/ includes much more detail about rounding and damage modifiers than the Bulbapedia article does. It's a bit outdated, though.
Also, the info in this answer is for Gen 5 onwards. The Bulbapedia article also has info for previous generations, although the differences are generally not significant.
7 votes

This shows how they do it in generation 5.

Level-This one is self explanatory. The higher your pokemon's level, the stronger the attack.

Attack-This one is also special attack if you're using a special move. If you use a move like swords dance, then those modifications are made beforehand. For instance, if you have a pokemon with 150 attack that uses swords dance, it will go to 300.

Defense-same as attack in that you use special defense for special moves. The number is based on your target's defense.

Base- the Base damage of the attack. For example, Earthquake has a base power of 100.

Modifier is for situational things:

STAB- If your pokemon's move matches its type, it'll be stronger.

type-this is where type matchups come in. If I use a grass move on swampert, it would be for because of his 4X weakness to grass.

critical-If you get a critical hit, then this powers up. This one is luck though.

other-This is for things like helping hand, weather, items, etc.

rand-Every time you attack, a random number ranging from .85 to 1 is selected.

by
So each move can strike with different power in gen 5?
If you are referring to the 'random' modifier, then yes, that's what it means. Moves don't do a set amount of damage. The formula has also remained unchanged since, and so still applies today.