📐 Math

DnD CR Calculator - Challenge Rating Tool for Encounters

Free DnD CR calculator to balance combat encounters instantly. Input party level and monsters to get accurate challenge ratings and XP rewards.

⚡ Free to use 📱 Mobile friendly 🕒 Updated: June 13, 2026
🧮 Dnd Cr Calculator
Challenge Rating
Enter values and click Calculate
function calculate() { const ac = parseInt(document.getElementById('i1').value) || 13; const hp = parseInt(document.getElementById('i2').value) || 50; const attackBonus = parseInt(document.getElementById('i3').value) || 5; const dpr = parseInt(document.getElementById('i4').value) || 15; const saveDC = parseInt(document.getElementById('i5').value) || 13; const specialAbilities = parseInt(document.getElementById('i6').value) || 1; // Defensive CR calculation based on HP let defCR = 0; if (hp <= 6) defCR = 0; else if (hp <= 8) defCR = 0.125; else if (hp <= 14) defCR = 0.25; else if (hp <= 21) defCR = 0.5; else if (hp <= 26) defCR = 1; else if (hp <= 38) defCR = 2; else if (hp <= 51) defCR = 3; else if (hp <= 65) defCR = 4; else if (hp <= 80) defCR = 5; else if (hp <= 96) defCR = 6; else if (hp <= 117) defCR = 7; else if (hp <= 140) defCR = 8; else if (hp <= 164) defCR = 9; else if (hp <= 189) defCR = 10; else if (hp <= 215) defCR = 11; else if (hp <= 246) defCR = 12; else if (hp <= 279) defCR = 13; else if (hp <= 314) defCR = 14; else if (hp <= 350) defCR = 15; else if (hp <= 390) defCR = 16; else if (hp <= 435) defCR = 17; else if (hp <= 480) defCR = 18; else if (hp <= 530) defCR = 19; else if (hp <= 585) defCR = 20; else if (hp <= 640) defCR = 21; else if (hp <= 700) defCR = 22; else if (hp <= 765) defCR = 23; else if (hp <= 835) defCR = 24; else if (hp <= 910) defCR = 25; else if (hp <= 990) defCR = 26; else if (hp <= 1075) defCR = 27; else if (hp <= 1165) defCR = 28; else if (hp <= 1260) defCR = 29; else defCR = 30; // Adjust defensive CR based on AC // Expected AC for CR: CR 0-3: 13, CR 4-7: 15, CR 8-11: 17, CR 12-15: 18, CR 16-20: 19, CR 21+: 20 let expectedAC = 13; if (defCR >= 4 && defCR <= 7) expectedAC = 15; else if (defCR >= 8 && defCR <= 11) expectedAC = 17; else if (defCR >= 12 && defCR <= 15) expectedAC = 18; else if (defCR >= 16 && defCR <= 20) expectedAC = 19; else if (defCR >= 21) expectedAC = 20; let acAdjustment = 0; if (ac > expectedAC + 5) acAdjustment = 2; else if (ac > expectedAC + 3) acAdjustment = 1; else if (ac > expectedAC + 1) acAdjustment = 0.5; else if (ac < expectedAC - 3) acAdjustment = -1; else if (ac < expectedAC - 5) acAdjustment = -2; let adjustedDefCR = Math.max(0, defCR + acAdjustment); // Offensive CR based on DPR let offCR = 0; if (dpr <= 1) offCR = 0; else if (dpr <= 3) offCR = 0.125; else if (dpr <= 5) offCR = 0.25; else if (dpr <= 8) offCR = 0.5; else if (dpr <= 14) offCR = 1; else if (dpr <= 20) offCR = 2; else if (dpr <= 26) offCR = 3; else if (dpr <= 32) offCR = 4; else if (dpr <= 38) offCR = 5; else if (dpr <= 44) offCR = 6; else if (dpr <= 50) offCR = 7; else if (dpr <= 56) offCR = 8; else if (dpr <= 62) offCR = 9; else if (dpr <= 68) offCR = 10; else if (dpr <= 74) offCR = 11; else if (dpr <= 80) offCR = 12; else if (dpr <= 86) offCR = 13; else if (dpr <= 92) offCR = 14; else if (dpr <= 98) offCR = 15; else if (dpr <= 104) offCR = 16; else if (dpr <= 110) offCR = 17; else if (dpr <= 116) offCR = 18; else if (dpr <= 122) offCR = 19; else if (dpr <= 128) offCR = 20; else if (dpr <= 134) offCR = 21; else if (dpr <= 140) offCR = 22; else if (dpr <= 146) offCR = 23; else if (dpr <= 152) offCR = 24; else if (dpr <= 158) offCR = 25; else if (dpr <= 164) offCR = 26; else if (dpr <= 170) offCR = 27; else if (dpr <= 176) offCR = 28; else if (dpr <= 182) offCR = 29; else offCR = 30; // Adjust offensive CR based on attack bonus let expectedAttack = 3; if (offCR >= 4 && offCR <= 7) expectedAttack = 5; else if (offCR >= 8 && offCR <= 11) expectedAttack = 7; else if (offCR >= 12 && offCR <= 15) expectedAttack = 8; else if (offCR >= 16 && offCR <= 20) expectedAttack = 9; else if (offCR >= 21) expectedAttack = 10; let attackAdjustment = 0; if (attackBonus > expectedAttack + 5) attackAdjustment = 2; else if (attackBonus > expectedAttack + 3) attackAdjustment = 1; else if (attackBonus > expectedAttack + 1) attackAdjustment = 0.5; else if (attackBonus < expectedAttack - 3) attackAdjustment = -1; else if (attackBonus < expectedAttack - 5) attackAdjustment = -2; let adjustedOffCR = Math.max(0, offCR + attackAdjustment); // Calculate final CR as average of defensive and offensive CR let finalCR = (adjustedDefCR + adjustedOffCR) / 2; // Apply special abilities modifier if (specialAbilities >= 3) finalCR += 1; else if (specialAbilities >= 1) finalCR += 0.5; // Round to nearest standard CR const crOptions = [0, 0.125, 0.25, 0.5, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30]; let closest = crOptions[0]; for (const cr of crOptions) { if (Math.abs(cr - finalCR) < Math.abs(closest - finalCR)) { closest = cr; } } finalCR = closest; // Format CR display let crDisplay = finalCR; if (finalCR === 0.125) crDisplay = '1/8'; else if (finalCR === 0.25) crDisplay = '1/4'; else if (finalCR === 0.5) crDisplay = '1/2'; // Determine color based on CR let colorClass = 'green'; if (finalCR >= 10 && finalCR < 20) colorClass = 'yellow'; else if (finalCR >= 20) colorClass = 'red'; // XP based on CR const xpTable = { 0: 10, 0.125: 25, 0.25: 50, 0.5: 100, 1: 200, 2: 450, 3: 700, 4: 1100, 5: 1800, 6: 2300, 7: 2900, 8: 3900, 9: 5000, 10: 5900, 11: 7200, 12: 8400, 13: 10000, 14: 11500, 15: 13000, 16: 15000, 17: 18000, 18: 20000, 19: 22000, 20: 25000, 21: 33000, 22: 41000, 23: 50000, 24: 62000, 25: 75000, 26: 90000, 27: 105000, 28: 120000, 29: 135000, 30: 155000 }; const xp = xpTable[finalCR] || 0; // Proficiency bonus let profBonus = 2; if (finalCR >= 5 && finalCR <= 8) profBonus = 3; else if (finalCR >= 9 && finalCR <= 12) profBonus = 4; else if
📊 Average CR vs. XP Thresholds for Party Levels 1–5

What is Dnd Cr Calculator?

A Dnd Cr Calculator is a specialized digital tool designed to compute the Challenge Rating (CR) of a monster or encounter in Dungeons & Dragons 5th Edition. This free online calculator takes key combat statistics—such as Armor Class, Hit Points, Damage Per Round, and Attack Bonus—and applies the official Dungeon Master's Guide formulas to determine a precise CR value. For Dungeon Masters, this tool bridges the gap between homebrew monster ideas and balanced gameplay, ensuring that encounters are neither trivial nor lethal.

Dungeon Masters of all experience levels use this calculator to quickly validate their custom creatures, adjust existing monsters for higher-level parties, or design balanced multi-creature encounters. It matters because a single miscalculated CR can derail an entire session, leading to a TPK (Total Party Kill) or a boring walkover. By automating the complex math behind defensive and offensive ratings, this tool saves hours of manual cross-referencing with tables in the Dungeon Master's Guide.

This free online Dnd Cr Calculator provides instant, accurate results with a full step-by-step breakdown of how each CR is derived. No signup, no downloads, and no hidden fees—just enter your monster's stats and get a reliable challenge rating that you can trust for your next session.

How to Use This Dnd Cr Calculator

Using this calculator is straightforward, even if you're new to encounter design. Follow these five simple steps to convert your homebrew monster's raw stats into a balanced Challenge Rating that aligns with official D&D 5e guidelines.

  1. Enter Defensive Statistics: Start by inputting your monster's Armor Class (AC) and Hit Points (HP) into the designated fields. These are the primary drivers of the Defensive Challenge Rating. For example, a creature with 150 HP and 17 AC would be entered exactly as those numbers. The calculator automatically accounts for any damage resistances or immunities you select from the dropdown menu.
  2. Input Offensive Statistics: Next, enter the monster's Attack Bonus (to hit) and average Damage Per Round (DPR). DPR should be calculated over three rounds of combat, assuming all attacks hit. Include damage from special abilities, legendary actions, and lair actions in this average. For instance, if a dragon deals 45 damage from its bite, 30 from claws, and 20 from a breath weapon across three rounds, the DPR would be approximately 32.
  3. Select Creature Features: Use the checkboxes to indicate special traits like damage resistances, immunities, condition immunities, and saving throw proficiencies. The calculator adjusts the effective HP and AC based on these features per official rules. For example, a creature with immunity to non-magical bludgeoning, piercing, and slashing damage receives an effective HP multiplier of 1.5 if the party is expected to have magical weapons.
  4. Choose Save DC and Spellcasting (Optional): If your monster has spellcasting or abilities that require saving throws, enter the Save DC here. This feeds into the offensive CR calculation, as spells like Fireball or Hold Person contribute to the effective DPR. For non-spellcasters, leave these fields at zero.
  5. Click Calculate and Review Results: Press the "Calculate CR" button. The tool instantly displays the final Challenge Rating, along with a detailed breakdown of the Defensive CR, Offensive CR, and the final averaged CR. Below the result, you'll see a step-by-step explanation of how each number was derived, allowing you to verify the logic or tweak stats for fine-tuning.

For best results, always double-check your DPR calculation over three rounds and be honest about resistances and immunities. The calculator is only as accurate as the data you feed it. If your result seems off, revisit your HP and DPR inputs first—these are the most commonly misestimated values.

Formula and Calculation Method

The Dnd Cr Calculator uses the official Challenge Rating formula from the Dungeon Master's Guide (Chapter 9, "Creating a Monster"), which separates a creature's power into two independent ratings: Defensive Challenge Rating (DCR) and Offensive Challenge Rating (OCR). These two values are averaged to produce the final CR. This two-axis approach ensures that a glass-cannon monster (low HP, high damage) and a tank (high HP, low damage) can end up with the same CR, reflecting their overall threat level.

Formula
Final CR = (Defensive CR + Offensive CR) ÷ 2

Where:
Defensive CR is determined by mapping Effective HP (after resistances/immunities) and Effective AC to the Monster Statistics by Challenge Rating table.
Offensive CR is determined by mapping Damage Per Round (DPR) and Attack Bonus/Save DC to the same table.

The key variables in this formula are Effective HP, Effective AC, DPR, and Attack Bonus. Effective HP is your monster's actual HP multiplied by a modifier based on damage resistances and immunities (1.0 for none, 1.25 for resistances to common damage types, 1.5 for immunities to common types, and 2.0 for both resistance and immunity to non-magical weapons at low levels). Effective AC adjusts the actual AC based on saving throw proficiencies and condition immunities—each saving throw proficiency adds +2 to effective AC, and each condition immunity adds +1, up to a maximum of +4 total.

Understanding the Variables

Hit Points (HP): The raw HP of the creature. For the calculator, this is the base number before any effective HP adjustments. A creature with 200 HP is already a significant threat, but resistances can push its effective HP much higher.
Armor Class (AC): The base AC of the creature. The calculator compares this to the expected AC for the monster's HP tier. If the effective AC is 2 or more points higher than expected, the DCR increases by one step per 2-point difference.
Damage Per Round (DPR): The average damage the creature deals over three rounds of combat. This includes all attacks, spells, legendary actions, and area-of-effect abilities (calculated assuming 2 targets for AoEs). A DPR of 65-70 typically corresponds to a CR 10 creature.
Attack Bonus: The creature's highest attack bonus (to hit). This is compared to the expected attack bonus for the DPR tier. A +2 or higher difference adjusts the OCR up or down by one step per 2-point deviation.

Step-by-Step Calculation

First, calculate the Defensive CR: Take the creature's effective HP and find its corresponding CR on the Monster Statistics table. For example, 200 effective HP maps to CR 10 (expected HP range 176-200). Then, check the effective AC. If the creature's effective AC is 17 and the expected AC for CR 10 is 17, no adjustment is needed. If the effective AC were 19 (2 higher), the DCR would increase by 1 step to CR 11. If the effective AC were 13 (4 lower), the DCR would decrease by 2 steps to CR 8.

Second, calculate the Offensive CR: Take the creature's DPR and find its corresponding CR on the same table. For instance, 55 DPR maps to CR 8 (expected DPR range 51-56). Then, check the attack bonus. If the creature has a +8 attack bonus and the expected attack bonus for CR 8 is +7, the difference is +1, which is less than 2, so no adjustment. If the attack bonus were +10 (3 higher), the OCR would increase by 1 step to CR 9. If the attack bonus were +4 (3 lower), the OCR would decrease by 1 step to CR 7.

Finally, average the two values: (DCR + OCR) ÷ 2, rounding to the nearest whole number. If the average is exactly halfway (e.g., 8.5), round up to 9. This final number is the creature's Challenge Rating. The calculator performs all these adjustments and rounding automatically, presenting the result along with the intermediate DCR and OCR values.

Example Calculation

Let's walk through a realistic scenario that a Dungeon Master might encounter when designing a custom boss for a 6th-level party. This example uses a homebrew "Crystal Golem" that the DM wants to be a challenging solo encounter.

Example Scenario: A Crystal Golem with 180 HP, 18 AC, resistance to non-magical bludgeoning/piercing/slashing, immunity to poison and psychic damage, a +9 attack bonus, and an average DPR of 42 (over three rounds: two slam attacks at 18 damage each, plus a shard burst that hits two targets for 6 damage each). It has proficiency in Strength and Constitution saving throws.

Step 1: Calculate Effective HP and Effective AC. The golem has resistance to common physical damage (non-magical BPS) and immunity to poison and psychic. Since the party is level 6 (likely has some magic weapons), the resistance modifier is 1.25. So effective HP = 180 × 1.25 = 225. For effective AC: base AC is 18. Two saving throw proficiencies (Str and Con) add +2 each, for +4 total. No condition immunities beyond what's already covered. So effective AC = 18 + 4 = 22.

Step 2: Determine Defensive CR. 225 effective HP falls in the CR 11 range (201-225). Expected AC for CR 11 is 17. The effective AC is 22, which is 5 points higher than expected. That's two full steps of +2 each, so DCR increases by 2 to CR 13. The calculator shows a DCR of 13.

Step 3: Determine Offensive CR. DPR of 42 falls in the CR 6 range (39-44). Expected attack bonus for CR 6 is +6. The actual attack bonus is +9, which is 3 points higher. That's one full step (+2), so OCR increases by 1 to CR 7. The calculator shows an OCR of 7.

Step 4: Average DCR and OCR. (13 + 7) ÷ 2 = 10. The final Challenge Rating is CR 10. This means the Crystal Golem is a suitable challenge for a party of four 10th-level characters, or a very hard encounter for a 6th-level party. The DM can now adjust the encounter accordingly, perhaps adding minions or reducing HP.

Another Example

Consider a "Shadow Weaver," a low-level spellcaster for a 3rd-level party. It has 45 HP, 13 AC, no resistances, a +4 attack bonus, and a DPR of 16 (two rounds of Chill Touch at 8 damage each, plus one round of Magic Missile at 10 damage). It has proficiency in Dexterity and Wisdom saves.

Effective HP = 45 (no resistances). Effective AC = 13 + 4 (two save proficiencies) = 17. DPR of 16 falls in CR 2 range (15-20). Expected AC for CR 2 is 13—effective AC 17 is 4 higher, so DCR increases by 2 steps from CR 1 (45 HP maps to CR 1/2, but adjusted). Wait, let's recalculate: 45 HP maps to CR 1/4 (36-50 HP range for CR 1/4 is 36-50? Actually, the table shows CR 1/4 has expected HP 36-50, so base DCR is 1/4. Effective AC 17 vs expected AC for CR 1/4 (which is 13)—4 points higher, so DCR increases by 2 steps: from 1/4 to 1/2 to 1. So DCR = 1. For OCR: DPR 16 maps to CR 2 (15-20 range). Expected attack bonus for CR 2 is +3. Actual attack bonus is +4, only 1 point higher, so no adjustment. OCR = 2. Final CR = (1 + 2) ÷ 2 = 1.5, rounded up to 2. The Shadow Weaver is a CR 2 creature, perfect for a low-level party.

Benefits of Using Dnd Cr Calculator

Using a dedicated Dnd Cr Calculator transforms the often tedious and error-prone process of homebrew monster creation into a precise, data-driven task. This tool is indispensable for Dungeon Masters who want to maintain game balance without spending hours flipping through rulebooks. Here are the key benefits you can expect.

  • Eliminates Manual Calculation Errors: The official CR calculation involves cross-referencing multiple tables, applying fractional adjustments for resistances, and averaging two separate ratings. A single arithmetic mistake can shift a CR by 3 or 4 levels, ruining encounter balance. This calculator automates all math, ensuring that every adjustment for effective HP, effective AC, and attack bonus differences is applied correctly every time.
  • Instant Feedback for Iterative Design: When designing a monster, you often need to tweak stats multiple times to hit a specific CR target. With this tool, you can adjust HP by 10 points or increase DPR by 5 and see the new CR in seconds. This rapid iteration allows you to fine-tune encounters during session prep without slowing down your creative flow.
  • Transparent Step-by-Step Breakdown: Unlike black-box calculators that only show a final number, this tool provides a full audit trail. You can see exactly why a creature's DCR is 8 and its OCR is 12, including which adjustments were triggered. This transparency helps you learn the underlying system and become a better encounter designer over time.
  • Handles Complex Creature Features: Many monsters have damage resistances, immunities, condition immunities, and multiple saving throw proficiencies. Manually calculating effective HP and effective AC for a creature with resistance to fire, immunity to poison, and three saving throw proficiencies is tedious. The calculator handles these combinations instantly, applying the correct multipliers and bonuses per official guidelines.
  • Free and Accessible Anytime: This tool requires no account creation, no subscriptions, and no software installation. Whether you're at your gaming table with a laptop, prepping on your phone during a commute, or collaborating with players on a Discord server, the calculator is always available. It works on any device with a modern web browser.

Tips and Tricks for Best Results

To get the most accurate Challenge Rating from this calculator, you need to understand a few nuances of the CR system. These pro tips come from experienced Dungeon Masters who have used the official rules extensively. Follow them to avoid common pitfalls and create balanced, memorable encounters.

Pro Tips

  • Always calculate Damage Per Round over exactly three rounds of combat, assuming all attacks hit and area-of-effect abilities hit two targets. This standardizes the DPR and aligns with the official guidelines. For example, if a monster has a breath weapon that recharges on a 5-6, assume it uses it once in three rounds.
  • When entering effective HP adjustments for resistances, be honest about the party's capabilities. If your party has no magic weapons, a creature immune to non-magical BPS should use a 2.0 multiplier. If the party has abundant magic weapons, use 1.25. The calculator allows you to toggle this setting for accuracy.
  • Use the calculator to reverse-engineer official monsters. Input the stats of a known CR creature (like a CR 5 Hill Giant) to see if the calculator outputs CR 5. This verifies your understanding of the inputs and builds confidence in the tool for your homebrew designs.
  • For multi-creature encounters, calculate the CR for each individual monster, then use the Encounter Multiplier rules from the DMG separately. This calculator focuses on individual CR, not encounter difficulty. A group of four CR 2 creatures is not the same as one CR 8 creature due to action economy.

Common Mistakes to Avoid