Reading your numbers
A list can be separated by spaces, new lines, commas, semicolons, tabs or the | character. Because a comma is a separator, "1,000" is read as two numbers, 1 and 0. Symbols stuck to a number are stripped ($90, 45%, 12kg all read as the number), and anything that still is not a number is skipped and reported above the results. The Unicode minus sign and the en dash are both read as a minus sign. Where a box expects one number (a GPA credit, a tip percent), a box holding two numbers is treated as empty.
Average, median, mode, range
The average is the arithmetic mean: sum divided by count. The median is the middle value of the sorted list, or the mean of the two middle values when the count is even. The mode is the value that appears most often; two or more values tied for the top count are all reported, and if every value appears once there is no mode. The range is the largest value minus the smallest. For 1, 2, 2, 9 that gives mean 3.5, median 2, mode 2, range 8. The range calculator also shows the midrange, the halfway point between the two ends, as (largest + smallest) divided by 2.
Standard deviation and variance
The average calculator shows the sample standard deviation: the squared differences from the mean are summed and divided by n minus 1, then square-rooted. A single number therefore has no standard deviation. The mean calculator offers both sample (n minus 1) and population (n) versions and labels which is which. For 2, 4, 4, 4, 5, 5, 7, 9 the population standard deviation is 2 and the sample standard deviation is about 2.138.
Quartiles, IQR and other measures of spread
Quartiles are worked out by splitting the sorted list at the median and taking the median of each half. When the count is odd the two taught methods disagree, so the IQR calculator lets you choose: the exclusive method (Moore and McCabe, and what TI-84 calculators do) leaves the middle value out of both halves, while the inclusive method (Tukey's hinges) puts it in both. Spreadsheets and statistics packages generally interpolate instead, which can give a third answer that is also defensible. Even counts give the same answer either way. The interquartile range is Q3 minus Q1, and a value is flagged as an outlier when it falls below Q1 minus 1.5 times the IQR or above Q3 plus 1.5 times the IQR, which is a widely used convention rather than a rule.
The mean absolute deviation is the average distance from the mean, dividing by n, not n minus 1; the n minus 1 adjustment belongs only to the sample standard deviation and variance. The standard error of the mean is the sample standard deviation divided by the square root of the count. Its 95% confidence interval uses a t critical value looked up by degrees of freedom rather than a flat 1.96, because 1.96 is only right for large samples; between tabulated rows the lookup steps down to the lower degrees of freedom, which gives the wider, more cautious interval, and it only reaches 1.96 above 1,000 degrees of freedom. The interval assumes independent readings from one population and a roughly normal distribution of sample averages. Relative frequency is each count divided by the total; every distinct value gets its own row, with no binning into class intervals.
Weighted average
Each value is multiplied by its weight, the products are summed and divided by the sum of the weights. Weights do not need to add up to 100 or 1. Blank rows are ignored, a row whose weight is zero does not count as used, and if every weight is zero there is no result. Negative weights are allowed because they are valid maths, even if unusual.
Grades and GPA
The grade average calculator weights each score by the percent of the course it is worth and reports the current grade out of the weight entered so far. Letter grades use the common US scale: A 90 and above, B 80 to 89, C 70 to 79, D 60 to 69, F below 60. The final grade calculator solves for the final exam score that reaches a target, given the current grade and the weight of the final. The GPA calculator uses A+ and A 4.0, A- 3.7, B+ 3.3, B 3.0, B- 2.7, C+ 2.3, C 2.0, C- 1.7, D+ 1.3, D 1.0, D- 0.7, F 0, multiplied by credits; honors adds 0.5 and AP adds 1.0 per course, capped at 5.0 on the 4.0 scale and 5.3 on the 4.3 scale. Cumulative GPA combines this term with the previous GPA and credits you enter.
Percentages
X% of Y is Y times X divided by 100. "What percent is A of B" is A divided by B times 100. Percent change from A to B divides the change by the absolute value of A. Percentage difference divides the gap between two numbers by the average of their absolute values, so it is symmetrical. Percent error divides the gap between measured and accepted by the absolute value of the accepted value. All are shown as percentages, not fractions.
Tips, ratios, proportions, GCF and LCM
Tip is bill times percent divided by 100, split evenly between people; tax is only included if it is already in the bill you type. Ratios are simplified by dividing both sides by their greatest common factor; decimal ratios are scaled to whole numbers first. A proportion a/b = c/d is solved by cross-multiplication for whichever term is blank. GCF uses Euclid's algorithm and LCM is a times b divided by their GCF, extended across every number entered; prime factorisations are shown.
The decimal to fraction calculator reads the digits you typed rather than the stored binary value, so 0.1 gives exactly 1/10: the decimal places set the denominator as a power of ten and the fraction is then reduced by its greatest common factor. A decimal too long for that gets the closest fraction found by continued fractions instead, and the page says which of the two happened. Going the other way, the decimal is produced by long division, which also finds the repeating block exactly; repeating digits are shown in brackets, so one third is 0.(3). Denominators above one million are refused, and a repeating block longer than 2,000 digits is cut short with the page saying so.
Days, dates and business days
"N days from today" counts today as day 0, so 1 day from Monday is Tuesday. "Days until" a date does not count today unless you switch on "count the end date", which adds one. Business days skip Saturdays and Sundays only; public holidays are not skipped by default because they differ by country and employer. The working days calculator is the exception: it can take out the US federal holidays, on the day they are observed, for 1978 onwards. Earlier years are refused rather than answered wrongly, because Martin Luther King Jr. Day only began in 1986, Juneteenth in 2021, and the Monday-observance rules settled during the 1970s. A fixed-date holiday landing on a Saturday is observed the Friday before and one landing on a Sunday the Monday after, so a 1 January that falls on a Saturday is observed on 31 December and counts against the previous year. That calculator counts both the start and end dates, so Monday to Friday is five working days, not four; the business-day tiles on the date calculators count the days between instead. Real calendar dates are used, so 29 February exists in leap years, and a preset like "days until Christmas" rolls to next year's date once this year's has passed. Date calculations use your device's local date; the line crawlers see is computed in UTC at our edge and is replaced by your local version as soon as the page loads.
Hours and time durations
"N hours ago" and "N hours from now" add or subtract exactly N times 60 minutes from your device's clock, so across a daylight-saving change the clock time can differ from a plain N-hour shift. Time durations between two clock times that cross midnight are treated as overnight. Decimal hours are minutes divided by 60, so 90 minutes is 1.5 hours.
Time unit conversions
Seconds, minutes, hours, days and weeks convert exactly. A month is taken as 30.44 days (365.25 divided by 12) and a year as 365.25 days, the four-year leap-year average. Those two are approximations; the calendar's long-run average is 365.2425 days, about 11 minutes a year less.
Molecular weight
Formulas are parsed with nested brackets and hydrate dots (CuSO4·5H2O). Atomic weights are the abridged IUPAC values, typically four or five significant figures, so results are accurate to about that precision. Isotopes are not supported. A closing bracket has to match the bracket that opened it, a hydrate dot has to have a formula on both sides of it, and a subscript of zero is refused rather than quietly contributing nothing; formulas above a million atoms, counted per element and in total, are refused as well. A fractional hydrate such as CaSO4·0.5H2O is understood, but a reaction coefficient in front of a formula (2H2O) is refused, because a molar mass describes one unit of a substance.
Moles, mass and particle counts
Moles are the mass in grams divided by the molar mass in grams per mole, and going the other way is the same multiplication in reverse; the grams to moles calculator takes its molar mass either from a formula you type or from a number you enter, and only ever reads whichever of the two you have selected. The particle count is the moles multiplied by the Avogadro constant, 6.02214076 × 10²³, which is exact by definition. A negative mass or amount is refused because it is not a real quantity, zero is a valid answer, and a result that is too large or too small for the computer to hold is reported in those words rather than shown as a number. Very large and very small results, including every particle count, are written in scientific notation.
Average atomic mass
Each isotope's mass is multiplied by its share of the total abundance entered, and the products are added. Abundances are read as percentages only: a value like 0.778 is taken as 0.778%, never as a 77.8% share, because guessing between the two cannot be done safely. When the abundances do not add up to 100, the average atomic mass calculator still answers by dividing each row by the total entered, and says on screen that it has done so; that result is the weighted average of the isotopes listed, which is only the element's true atomic weight if every isotope was listed. A total within half a percentage point of 100 counts as 100. An abundance below zero or above 100, a mass of zero or less, and a half-filled row are all refused rather than averaged, and the answer is always between the lightest and heaviest isotope entered.
Protons, neutrons and electrons
Protons equal the atomic number, electrons equal the atomic number minus the charge (a positive ion has lost electrons), and neutrons equal the mass number minus the atomic number. The protons, neutrons and electrons calculator deliberately does not guess a mass number: the periodic table's mass is an abundance-weighted average, and rounding it does not reliably name the commonest isotope — copper's 63.546 rounds to 64, while copper-63 is the isotope that is actually most common in nature. Leave the mass number empty and the neutron count is left unanswered; a button fills in the rounded periodic-table value, which is the answer most textbooks expect, and the result then says on the tile itself that it is an estimate. A mass number below the atomic number is refused, and so is a positive charge larger than the atomic number, since an atom cannot lose more electrons than it has to start with (Li²⁺, which keeps one electron, is perfectly acceptable). Elements are matched by symbol, name or atomic number without regard to capitals, and the spellings aluminum, cesium, sulphur and phosphorous are accepted alongside the IUPAC names.
Rounding and display
"Auto" decimals shows at most four decimal places and drops trailing zeros; very small numbers are shown with four significant figures instead so they do not round to zero. Choosing a fixed number of decimals pads to that length. The Copy button copies the plain number with no thousands separators so it pastes cleanly into a spreadsheet. If a result overflows the largest number JavaScript can hold, the page says the values are too large to average accurately instead of showing a blank.
Found a mismatch?
Email hello@avgcalc.com with the page, your inputs and the answer you expected. The calculation code is covered by automated tests, and a wrong answer gets a test added so it stays fixed.