How Raid Boss CP is Calculated

Raid bosses have sometimes seemed to have an arbitrary CP level. However, it appears that a formula has been created that explains the relationship between raid boss CP and raid level. Reddit user u/haxxxxah surmised that raid bosses use perfect IV and normal base stats, except for Stamina.

Stamina levels are as such, determined by raid level:

Raid Level Stamina
Level 1 600
Level 2 1800
Level 3 3000
Level 4 7500
Level 5 12500

CP is then calculated using this formula:

$$(( bAtk + 15) * sqrt(bDef + 15) * sqrt(rSta)) / 10$$

The final number is rounded down, and then you have the raid bosses' CP. The formula uses base attack stat, base defense, and newly discovered raid stamina. This formula has been confirmed by all current raid bosses, including the Japan-exclusive raid bosses released during the Yokohama event. 

With this formula, we can predict what any Pokemon's CP would be if it were a raid boss, depending on raid level.  

Quick Links
Attackers Attackers Defenders Gym Defenders
ATK per type crown1 ATK per type (No Legendary)
Raid Boss ListRaid Boss List Solo Raid Raid Boss CountersRaid Boss Counters
Pokemon List Pokemon CP ListMax CP Region ExclusiveRegion Exclusive
ShinyShiny GrassNesting Legacy MovesLegacy
IV Calc Egg ListEgg List Breakpoint Calc
CP Calc RaidRaid IV Calc Appraisals
Power Up Cost Catch Rate Calc Type Chart
Guide Database Glossary Starter Guide