Average Calculator - Mean, Median, Mode, GPA and Weighted Average
Enter any list of numbers, or durations, to instantly get the mean, median, mode, range, and weighted average with clear formulas. Built for grades, GPA, test scores, sales figures, sports stats, and stock cost basis. Free, no login, works on any device.
What is an average calculator?
An average calculator is a tool that adds a list of numbers together and divides the sum by how many numbers were entered, giving the arithmetic mean. This calculator also computes the median, mode, and range, and switches between a weighted average for grades and GPA and a time average for durations such as lap times or work hours.
Average Calculator
Enter Your Numbers
| Label | Value | |
|---|---|---|
What Is an Average Calculator?
An average calculator adds a set of numbers together and divides the total by the count of numbers, producing the arithmetic mean. This tool also reports the median, mode, range, and a weighted average, and can average time durations directly, so you get a complete picture from a single list of values, not just one figure.
The word "average" usually refers to the arithmetic mean, but it is only one of three common measures of central tendency. The mean is sensitive to every value in a data set, including outliers. The median ignores outliers and reflects the true middle of the data. The mode shows which value repeats most often. This calculator reports all three at once so you can choose the measure that best fits your situation.
What this average calculator computes
- Mean (average): the sum of all entered numbers divided by how many numbers were entered
- Median: the middle value once numbers are sorted, or the mean of the two middle values for an even count
- Mode: the value or values that repeat most often in the data set, shown as "none" when every value is unique
- Range: the difference between the highest and lowest value, useful for spotting how spread out the numbers are
- Weighted average: an average where each number is multiplied by an assigned weight before dividing by the total weight, used for grades, GPA, exam scores, and stock cost basis
- Time average: switch the value type to Time to average durations such as lap times, call lengths, or work hours in h:mm:ss format
- Sum and count: shown alongside the average so you can double-check the underlying numbers
How it is different from similar tools
| Tool | Primary Purpose | Key Feature |
|---|---|---|
| Average Calculator | Calculate mean, median, mode, and range from any list of numbers or durations | Toggles to weighted average for grades, GPA, and stock cost basis, or to time for durations |
| GPA Calculator | Convert letter grades into a weighted grade point average on a 4.0 scale | Uses fixed grade point conversion tables instead of raw numbers |
| Standard Deviation Calculator | Measure how spread out values are from the average | Reports variance and standard deviation, not just the mean |
How to Calculate an Average? Step by Step
To calculate an average, add every number in the list together to get the sum, then divide the sum by the total count of numbers. The result is the arithmetic mean, commonly just called the average.
The calculator does this automatically as you type. Here is what each step does.
Choose simple or weighted average
Use Simple when every number should count equally, such as test scores or daily temperatures. Use Weighted when some numbers matter more than others, such as exam percentages, credit hours, or shares purchased at different prices.
Choose numbers or time
Leave the value type on Numbers for plain figures. Switch it to Time when you are averaging durations, such as lap times, call lengths, or daily work hours, entered as h:mm:ss or mm:ss.
Enter your values
Type each value into its own row, or use the quick entry field to paste a whole list separated by commas, spaces, or new lines. Negative numbers and decimals are both fully supported.
Add weights if using weighted average
In Weighted mode, enter a weight next to each value. Weights can be percentages that add up to 100, like exam category percentages, or any relative number, like credit hours or shares. The calculator divides by the total weight automatically, so weights do not need to add up to a specific number.
Read the results
The summary card shows the mean, median, mode, sum, count, min, max, and range the moment you finish typing. If you are in weighted mode, the weighted average appears in its own highlighted card. Click Export CSV to download every value alongside the results.
Average, Median and Mode - The Formulas
The Average (Mean) Formula
Average = (Sum of all values) / (Number of values)
Example: (4 + 8 + 6 + 10) / 4 = 28 / 4 = 7
Step-by-step worked calculation
Step 1: List the numbers
4, 8, 6, 10
Step 2: Add them together
4 + 8 + 6 + 10 = 28
Step 3: Count the numbers
There are 4 values in the list
Step 4: Divide sum by count
28 / 4 = 7.00 average
How to find the median
Median Rule
Sort the numbers from smallest to largest. If the count is odd, the median is the middle number. If the count is even, the median is the average of the two middle numbers.
Odd count example: 3, 7, 9 sorted is 3, 7, 9. Median = 7
Even count example: 4, 8, 6, 10 sorted is 4, 6, 8, 10. Median = (6 + 8) / 2 = 7
How to find the mode
Mode Rule
Count how many times each number appears. The mode is the number, or numbers, that appear most often. If every number appears exactly once, there is no mode.
Example: 2, 4, 4, 6, 8. The number 4 appears twice, more than any other value, so the mode is 4.
Weighted average formula
Weighted Average Formula
Weighted Average = Sum of (Value x Weight) / Sum of Weights
Example: Midterm 80 at weight 30%, Project 90 at weight 20%, Final exam 75 at weight 50%.
(80 x 0.30) + (90 x 0.20) + (75 x 0.50) = 24 + 18 + 37.5 = 79.5 weighted average
GPA, Time, and Stock Average Calculations
The calculator above handles three more specialized cases once you know which mode and value type to use.
Average calculator for GPA
Switch to Weighted mode, enter each course's grade points, such as 4.0 for an A or 3.3 for a B+, as the value, and its credit hours as the weight. The weighted average returned is the GPA.
GPA = Sum of (Grade Points x Credit Hours) / Sum of Credit Hours
Average calculator for time
Switch the value type to Time and enter durations as h:mm:ss or mm:ss, such as lap times, call lengths, or daily work hours. The calculator converts every entry to seconds, averages them, then converts the result back into a readable time.
Average calculator for stock price
Switch to Weighted mode, enter the price paid per share for each purchase as the value, and the number of shares bought in that purchase as the weight. The weighted average is the average cost basis per share, the same figure used in dollar cost averaging.
Average Stock Price = Sum of (Price x Shares) / Total Shares
Batting Average, Bowling Average, and Dice Expected Value
These three averages use their own formulas instead of a simple list of numbers, so they get quick calculators of their own below.
Baseball batting average
Batting average equals hits divided by at-bats, shown to three decimal places.
Batting average: not set
Bowling average
Bowling average equals total pinfall divided by games played.
Bowling average: not set
Dice average (expected value)
The expected value of one fair die numbered 1 through n is (1 + n) divided by 2. Multiply by the number of dice for the expected total of a roll.
Expected value: 3.50
Real-Life Examples of Using an Average Calculator
These real scenarios show how the average calculator is used across school, work, sports, and everyday situations.
Example 1: Student checking a semester test average
Scenario: Maria scored 78, 85, 92, and 88 on four equally weighted tests.
Calculation: Sum: 78 + 85 + 92 + 88 = 343. Count: 4. Average: 343 / 4 = 85.75.
Outcome: Maria sees her current average is 85.75 and knows what score she needs on her next test to reach a target grade.
Example 2: Student calculating a weighted final grade
Scenario: A midterm worth 30%, a project worth 20%, and a final exam worth 50% scored 80, 90, and 75.
Calculation: Weighted average: (80 x 0.30) + (90 x 0.20) + (75 x 0.50) = 24 + 18 + 37.5 = 79.5.
Outcome: The student enters each grade with its percentage weight and instantly sees the final course grade without manual multiplication.
Example 3: Small business owner reviewing monthly sales
Scenario: A shop owner logs revenue of $4,200, $3,950, $5,100, and $4,700 across four months.
Calculation: Average: (4,200 + 3,950 + 5,100 + 4,700) / 4 = 17,950 / 4 = $4,487.50 per month. Range: 5,100 - 3,950 = 1,150.
Outcome: The owner sees average monthly revenue alongside the range, showing how much sales swing between the best and worst month.
Example 4: Checking the average of positive and negative numbers
Scenario: A trader tracks daily profit and loss figures of -4, 8, and -2.
Calculation: Sum: -4 + 8 + -2 = 2. Count: 3. Average: 2 / 3 = 0.67.
Outcome: The trader confirms the average daily result is a small net positive of 0.67, even though two of the three days were losses.
Example 5: Student converting course grades into a GPA
Scenario: Four courses worth 3, 4, 3, and 2 credit hours earned grade points of 4.0, 3.3, 3.7, and 2.7.
Calculation: Weighted average: (4.0 x 3) + (3.3 x 4) + (3.7 x 3) + (2.7 x 2) = 12 + 13.2 + 11.1 + 5.4 = 41.7, divided by 12 total credits = 3.48 GPA.
Outcome: The student sees a 3.48 GPA without manually multiplying each grade by its credit hours.
Example 6: Investor tracking an average stock purchase price
Scenario: An investor buys 10 shares at $150, 15 shares at $120, and 20 shares at $135.
Calculation: Weighted average: (150 x 10) + (120 x 15) + (135 x 20) = 1,500 + 1,800 + 2,700 = 6,000, divided by 45 shares = $133.33 average cost per share.
Outcome: The investor sees the true average cost basis across all three purchases, which is different from simply averaging the three prices.
Example 7: Runner averaging four lap times
Scenario: A runner records lap times of 5:32, 5:47, 5:15, and 5:59.
Calculation: Converted to seconds: 332 + 347 + 315 + 359 = 1,353 seconds, divided by 4 laps = 338.25 seconds, or 5:38.
Outcome: The runner sees an average lap time of 5:38 without manually converting minutes and seconds by hand.
Average vs Median vs Mode - Which One Should You Use?
Direct Answer
Use the average (mean) when your data has no extreme outliers and every value should count equally. Use the median when outliers could skew the mean, such as salaries or home prices. Use the mode when you need to know the most common or most frequent value, such as the most popular shoe size sold.
| Measure | Best Used For | Sensitive to Outliers? |
|---|---|---|
| Mean (Average) | Test scores, temperatures, evenly distributed data | Yes, heavily affected by outliers |
| Median | Salaries, home prices, income, any skewed data | No, ignores extreme values |
| Mode | Most common shoe size, most frequent survey answer | No, only counts frequency |
Why the mean can be misleading
Five employees earn $40,000, $42,000, $45,000, $48,000, and one manager earns $200,000. The mean salary is $75,000, but the median is $45,000, which represents the typical employee far more accurately. This calculator shows both figures together so a single outlier never goes unnoticed.
Common Mistakes When Calculating an Average
These common errors account for most incorrect averages and grade disputes. Knowing them prevents problems before they occur.
Treating a weighted average like a simple average
Averaging 80, 90, and 75 directly gives 81.67, but if those scores are worth 30%, 20%, and 50% of a grade, the correct weighted result is 79.5. Always use weighted average when categories carry different importance, including GPA and stock purchases.
Forgetting to divide by the correct count
Leaving out a zero score, an empty row, or a number entered twice changes the count and skews the entire average. This calculator only counts rows where a value was actually entered, so blank rows never distort the result.
Confusing average with median in skewed data
Income, home prices, and company salaries are often skewed by a small number of very high values. Reporting the mean in these cases can overstate the typical case. The median is usually the fairer figure to quote.
Rounding too early in multi-step calculations
Rounding a weighted score before multiplying by its weight compounds small errors across several steps. This calculator keeps full decimal precision internally and only rounds the final displayed result.
Assuming weights must add up to 100
Weights do not need to total 100 or 1. The formula divides by the sum of whatever weights are entered, so relative weights such as 3 credit hours, 4 credit hours, or shares purchased work correctly without conversion.
Averaging time values as if they were plain numbers
Adding 1:45 and 2:30 as 1.45 and 2.30 gives the wrong answer. Converting both to seconds first, averaging, then converting back to minutes and seconds gives the correct result, which is exactly what the Time value type does automatically.
Frequently Asked Questions
Mean, Median, and Mode
All three measures calculated at once
Weighted Average
Grades, GPA, exams, and stock cost basis
Time Duration Averaging
Average lap times, calls, or work hours
Sports and Finance Extras
Batting average, bowling average, and dice expected value
Unlimited Rows
Paste a full list or add rows one by one
CSV Export
Download values and results as a spreadsheet
Double-check that every score, including a zero, is actually entered
Switch to weighted mode whenever categories carry different importance
Switch to time mode instead of converting minutes and seconds by hand
Check the median alongside the mean if your data may include outliers
Use the paste field to quickly load a long list of numbers at once
Export to CSV as a personal backup of your calculation

Fahad Ahmad
Founder of CalculatorsKit · Full-Stack JavaScript Developer · SEO & Digital Product Creator
Fahad Ahmad is the founder of CalculatorsKit and a full-stack JavaScript developer with more than 10 years of experience building modern web applications and online tools. He specializes in developing fast, accurate, and user-friendly calculators that help people make informed decisions in finance, health, education, business, mathematics, construction, and everyday life.
Every calculator published on CalculatorsKit is carefully researched, tested, and designed for accuracy and ease of use. Using modern technologies including Next.js, React, Tailwind CSS, and Shadcn UI, Fahad focuses on creating privacy-friendly tools that work instantly in the browser without requiring downloads or registration.
In addition to building calculators, Fahad writes educational articles that explain formulas, calculation methods, financial concepts, and practical examples in simple language so students, professionals, and everyday users can better understand the results they receive.
