Calculate Cricket Net Run Rate

Cricket Net Run Rate (NRR) Calculator body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: #333; margin: 0; padding: 20px; background-color: #f4f7f6; } .calculator-container { max-width: 600px; margin: 0 auto; background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border-top: 5px solid #2e7d32; /* Cricket Green */ } h1 { text-align: center; color: #1b5e20; margin-bottom: 25px; } .input-group { margin-bottom: 20px; } label { display: block; margin-bottom: 8px; font-weight: 600; color: #2c3e50; } input[type="number"], input[type="text"] { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; box-sizing: border-box; } input:focus { border-color: #2e7d32; outline: none; box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1); } .help-text { font-size: 12px; color: #666; margin-top: 4px; } .calc-btn { width: 100%; padding: 15px; background-color: #2e7d32; color: white; border: none; border-radius: 6px; font-size: 18px; font-weight: bold; cursor: pointer; transition: background-color 0.2s; } .calc-btn:hover { background-color: #1b5e20; } #result-area { margin-top: 25px; padding: 20px; background-color: #e8f5e9; border-radius: 8px; text-align: center; display: none; border: 1px solid #c8e6c9; } .nrr-value { font-size: 32px; font-weight: 800; color: #1b5e20; } .nrr-label { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: #388e3c; } .breakdown { margin-top: 15px; font-size: 14px; color: #555; border-top: 1px solid #c8e6c9; padding-top: 10px; } article { max-width: 800px; margin: 40px auto; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); } article h2 { color: #1b5e20; border-bottom: 2px solid #e8f5e9; padding-bottom: 10px; margin-top: 0; } article p, article ul { margin-bottom: 20px; } article li { margin-bottom: 10px; }

Cricket NRR Calculator

Use dot for balls (e.g. 19.4 is 19 overs 4 balls). If All Out, enter full quota (e.g. 20.0).
Use dot for balls (e.g. 19.5). If Opponent All Out, enter full quota.
Net Run Rate
0.000
function calculateNRR() { // Get Input Values var runsScoredInput = document.getElementById("runsScored").value; var oversFacedInput = document.getElementById("oversFaced").value; var runsConcededInput = document.getElementById("runsConceded").value; var oversBowledInput = document.getElementById("oversBowled").value; // Validation if (!runsScoredInput || !oversFacedInput || !runsConcededInput || !oversBowledInput) { alert("Please fill in all fields correctly."); return; } // Helper function to convert cricket over notation (e.g., 10.2) to mathematical overs function convertOvers(oversStr) { oversStr = oversStr.toString(); var parts = oversStr.split('.'); var overs = parseInt(parts[0]) || 0; var balls = 0; if (parts.length > 1) { // Handle cases where user types .4 or .40 var decimalPart = parseInt(parts[1]); // If user types 10.1, we assume 1 ball. 10.10 is unlikely but we assume 1 ball logic usually. // Standardizing: strict 1 digit logic preferred but let's just take the first digit if multiple if (decimalPart >= 6 && decimalPart < 10) { // This handles weird input like 10.6 (which is technically next over) // but we will treat as just balls balls = decimalPart; } else if (decimalPart 0) { nrrFormatted = "+" + nrrFormatted; } // Display Logic var resultArea = document.getElementById("result-area"); var nrrResult = document.getElementById("nrrResult"); var calcBreakdown = document.getElementById("calcBreakdown"); resultArea.style.display = "block"; nrrResult.innerText = nrrFormatted; // Dynamic coloring if (nrr >= 0) { nrrResult.style.color = "#1b5e20"; // Green } else { nrrResult.style.color = "#c62828"; // Red } calcBreakdown.innerHTML = "Team Run Rate: " + runsScored + " / " + mathOversFaced.toFixed(4) + " = " + runRateFor.toFixed(3) + "" + "Opponent Run Rate: " + runsConceded + " / " + mathOversBowled.toFixed(4) + " = " + runRateAgainst.toFixed(3) + ""; }

What is Net Run Rate (NRR)?

Net Run Rate (NRR) is the primary method used in cricket tournaments to rank teams with equal points in a league table. It serves as a tie-breaker, measuring a team's winning margin or narrowing the margin of defeat.

It is effectively the difference between the rate at which a team scores runs and the rate at which they concede runs to their opponents throughout a tournament.

The Formula

The calculation is straightforward but requires precise handling of overs (sets of 6 balls):

NRR = (Total Runs Scored / Total Overs Faced) – (Total Runs Conceded / Total Overs Bowled)

How to Use This Calculator

  • Total Runs Scored: Enter the cumulative runs your team has scored in the tournament so far.
  • Total Overs Faced: Enter the total overs batted.
    Important: If a team is "All Out" before their overs quota ends (e.g., in 45 overs during a 50-over match), the calculation counts the full quota (50 overs) as the overs faced.
  • Total Runs Conceded: Enter the cumulative runs scored by opponents against your team.
  • Total Overs Bowled: Enter the total overs your team has bowled.
    Important: If you bowled the opponent out, you use the full quota of overs for the calculation, regardless of when the last wicket fell.

Calculation Example

Imagine Team A plays a match in a T20 tournament:

  • Batting: Team A scores 160 runs in 20.0 overs.
    Run Rate For = 160 / 20 = 8.00
  • Bowling: Team A restricts the opponent to 140 runs in 20.0 overs.
    Run Rate Against = 140 / 20 = 7.00
  • NRR: 8.00 – 7.00 = +1.000

A positive NRR indicates a team is scoring faster than their opponents on average, while a negative NRR indicates the opposite.

Leave a Comment