Standard Deviation Calculator - Variance, Quartiles & More

Most people reach for a calculator the moment they have a list of numbers and a question about how tightly they cluster, and almost every online standard deviation tool answers it with one figure and no context. The problem is that a single standard deviation can mean two different things depending on how you got your data, and choosing the wrong one quietly biases every number that follows. This free standard deviation calculator refuses to hide that choice. Paste your values into the box, separated by spaces or commas, and you get the full descriptive picture at once: the count, the sum, the arithmetic mean, the median and every mode, the minimum and maximum, the range, the first and third quartiles, the interquartile range, both the population and the sample form of the variance and the standard deviation, the coefficient of variation as a percentage, and the standard error of the mean. A checkbox decides whether the headline variance and standard deviation divide by n or by n−1, so you can see exactly how much the choice moves the answer rather than guessing. It also flags anything it could not parse instead of silently dropping it, which matters more than it sounds when you are pasting a column out of a spreadsheet and one cell contains a stray unit. Numbers are entered with full decimal precision and results are shown live as you type, so there is no submit button to forget. Everything runs client-side in your browser; your data is never uploaded, logged or stored.

Standard Deviation Calculator

Count (n)10
Sum291
Mean (arithmetic)29.1
Median30
Mode (most frequent value)No mode
Minimum12
Maximum value45
Range33
First quartile (Q1)22.5
Third quartile (Q3)37
Interquartile range (IQR)14.5
Sample variance (n−1)118.7667
Sample standard deviation (n−1)10.898
Coefficient of variation35.53%
Standard error of the mean3.4463
How these numbers are computed
  1. The mean is the sum of the values divided by the count.
  2. Each deviation from the mean is squared, so values above and below the mean both contribute positively.
  3. The squared deviations are summed and divided by n for the population variance, or by n−1 for the sample variance. Dividing by n−1 corrects the downward bias that appears because the mean was itself derived from the same data.
  4. The standard deviation is the square root of the variance, which returns the result to the units of the original data.

What Is

A data set has two kinds of centre, and they answer different questions. The mean is the arithmetic average, the sum divided by the count, and it uses every value in proportion to its magnitude, which makes it sensitive to outliers: one large measurement drags it noticeably. The median is the middle value once you sort the data, or the average of the two middle values when the count is even, and it ignores how far the extremes sit from the middle. When the distribution is roughly symmetric they agree, as they do for a list of exam scores. When it is skewed, by a few very large values or by a long lower tail, the median is the more honest description of a typical case and the mean is often the more useful one for further arithmetic. What neither of them tells you is spread. Two factories can both have a mean throughput of 100 units per hour while one is metronomic and the other swings between 40 and 160, and those two processes will behave completely differently under any change in demand, so measuring the dispersion is not a refinement, it is a different piece of information. The standard deviation is that measure, and it is defined as the square root of the variance, where the variance is the average squared distance of each value from the mean. The squaring is what makes the statistic computable, because without it values above and below the mean would cancel: a value 5 above the mean contributes −5 and a value 5 below contributes +5, and the sum would be zero for every data set.

Squaring removes the sign, so every deviation contributes positively and the total measures how far the data sits from the centre. But squaring changes the units, and that is exactly why the square root is taken back out at the end. Variance in seconds squared is not a quantity anyone can reason about; a standard deviation of 2.5 seconds can be compared directly with a mean of 12 seconds, added to a specification or fed into a further calculation. The critical fork is whether you divide by n or by n−1. The population variance divides by n and treats your list as the complete set, which is the correct description of the data you actually hold: the average squared deviation of these values from their own mean. The sample variance divides by n−1 and treats your list as a partial glimpse of a larger population, which is the correct way to estimate how much the population as a whole would vary. The reason for the correction is a subtle bias: the mean you divide by was itself computed from the same data, so it sits slightly closer to every point than the true population mean would, which makes each squared deviation slightly too small. Dividing by n−1 rather than n inflates the result by the factor n/(n−1), enough to remove that downward bias. The difference is negligible at n = 1000 and about 5 percent at n = 20, but it is the reason a reported standard deviation without its n is incomplete.

When the data is skewed or contains outliers, the standard deviation is inflated by those extremes and becomes hard to interpret, so report quartiles alongside it. The first quartile Q1 and third quartile Q3 bound the middle half of the data, and the interquartile range Q3 − Q1 measures spread while ignoring the bottom and top quarters entirely, which is why the IQR is the preferred measure whenever income, response time or any other heavy-tailed quantity is involved. To compare relative spread across quantities measured on different scales, use the coefficient of variation, which is the standard deviation divided by the magnitude of the mean and expressed as a percentage: 4 percent means the data spreads by about 4 percent of its own average. A standard deviation of 12 is meaningless on its own, but a coefficient of variation of 35 percent says this list is scattered relative to its size. Finally, the standard error of the mean, computed as the sample standard deviation divided by the square root of n, answers a subtly different question: it describes how precisely the mean itself has been estimated, and it shrinks as you collect more data at a rate of one over the square root of n, so quadrupling your sample size halves the uncertainty. The standard deviation describes your data; the standard error describes your knowledge of its mean. Keeping them apart is the difference between measuring a process and measuring your confidence in a measurement.

How to Use

  1. Open the Standard Deviation Calculator in your browser. Every figure is computed locally, so your values never leave your machine.
  2. Type or paste your numbers into the textarea, separated by spaces, commas or semicolons. A worked example is already loaded so you can see the output shape before entering anything.
  3. Check the red line under the box if one appears. Anything listed there was not parsed as a number, which usually means a stray unit, a percentage sign or a decimal comma slipped into the list.
  4. Tick or untick the sample checkbox labelled Treat the values as a sample of a larger population. Ticked, the headline variance and standard deviation divide by n−1; unticked, they divide by n.
  5. Read the count row first to confirm you pasted what you intended, then compare the mean with the median. A large gap between them means the data is skewed.
  6. Use the quartiles and the interquartile range for skewed or outlier-heavy data, since they describe the middle half and ignore the tails entirely.
  7. Use the coefficient of variation to compare two lists measured on different scales, and the standard error of the mean when you want to know how precisely the mean is known.
  8. Open the How these numbers are computed panel if you need to justify the formula behind any row in a report or a piece of coursework.

Examples

Input: 12, 15, 22, 24, 29, 31, 34, 38, 41, 45 with the sample box ticked

Process:

Mean 29.1, sum of squared deviations 1068.9, divided by n−1 = 9

Result: Sample variance 118.7667, sample standard deviation 10.898 — population form would give 106.89 and 10.3388

Input: 65, 70, 72, 75, 78, 80, 82, 85, 88, 95

Process:

Symmetric data, so mean and median both land on 79

Result: Sample standard deviation 8.9815, IQR 11.5, coefficient of variation 10.79% — a tight list relative to its own size

Input: 2, 4, 4, 4, 5, 5, 7, 9

Process:

Mean 5 but median 4.5, because the two largest values pull the average up

Result: Population standard deviation exactly 2, IQR 1.5, two tied modes at 4 and 5

Input: 11.2, 11.5, 11.9, 12.1, 12.4, 13.8

Process:

Mean 12.15 seconds, sample variance 0.835 divided by 6 gives SEM 0.3731

Result: Sample standard deviation 0.9138 seconds, standard error 0.3731 seconds, CV 6.87%

Related Searches

People also search for: standard deviation calculator, calculate standard deviation, sample standard deviation, population standard deviation, variance calculator, coefficient of variation.

standard deviation calculatorcalculate standard deviationsample standard deviationpopulation standard deviationvariance calculatorcoefficient of variationstandard error of the meaninterquartile rangequartilesdescriptive statisticsmean median modedata spreadskewed datarelative standard deviationsigma calculatorvariance formulaoutlier detection iqrstatistics onlineconfidence in the meanspread of numbers

Frequently Asked Questions

Should I divide by n or by n−1?

Divide by n if your list is the complete population you care about, for example every reading taken during a two-hour shift when your question is how variable that shift was. Divide by n−1 if your list is a sample drawn from a larger population, for example fifty customers surveyed when you want to estimate the spread of your whole customer base. The correction exists because your mean was calculated from the same values you are measuring deviations from, which pulls it slightly toward the centre and makes each squared deviation slightly too small. Dividing by n−1 inflates the variance by n/(n−1) to cancel that bias. The practical effect is that sample standard deviations run about 5 percent above population standard deviations at n = 20, only 1 percent at n = 100, and is irrelevant past a few thousand values. Publishing a standard deviation without stating which form you used is the most common statistical omission there is.

What is the difference between the mean and the median, and which should I use?

The mean is the sum divided by the count and it weights every value fully, so a single extreme observation pulls it a long way. The median is the middle value after sorting and it barely moves when an extreme value appears, because it depends only on the order of the data, not on how far apart the values are. They coincide on symmetric data and separate on skewed data. For a list such as 2, 4, 4, 4, 5, 5, 7, 9 the mean is exactly 5 while the median is 4.5, because the two largest values pull the average upward. Use the mean when you need it for further arithmetic, such as computing a percentage of the total or a weighted combination, and use the median when you want to describe a typical case in a distribution where a few large or small values dominate. If you report only one number for a skewed set, you will mislead whoever reads it.

Why do we take the square root of the variance?

Because the variance is measured in squared units and nobody can think in seconds squared. The squaring is a mathematical necessity rather than a choice: deviations from the mean come in opposite signs, and without squaring, a value 5 above cancels a value 5 below exactly, so every data set would report a variance of zero. Squaring makes all contributions positive, and the resulting total scales with the square of the spread. Dividing by n or n−1 gives a variance in units of time squared, which cannot be compared with anything meaningful. Taking the square root restores the original units, so a standard deviation of 0.83 seconds means the data genuinely sits about 0.83 seconds from the mean, a statement that can be checked against a specification, added to a threshold or fed into a subsequent formula. This is why the standard deviation, not the variance, is what people quote when they say how much their data varies.

What is the interquartile range for, and when is it better than the standard deviation?

The interquartile range, or IQR, is Q3 minus Q1 and it measures the width of the middle half of the data, discarding the bottom quarter and the top quarter entirely. That is exactly what makes it robust. The standard deviation uses every value in proportion to how far it sits from the mean, so one corrupted reading or one customer who entered their income as 900000 instead of 90000 inflates it dramatically. The IQR is unaffected. For the list 11.2, 11.5, 11.9, 12.1, 12.4, 13.8 the standard deviation is about 0.91 seconds and the IQR is about 0.73 seconds, a modest difference; add a single stray value of 500 and the standard deviation climbs past 180 while Q1 and Q3 barely move. Reporting the IQR alongside the median is the standard defensive pairing for skewed data such as income, house prices and latency. The common rule of thumb is that values more than 1.5 times the IQR beyond Q1 or Q3 are worth inspecting as possible outliers.

What does the coefficient of variation tell me that the standard deviation does not?

The coefficient of variation divides the standard deviation by the absolute size of the mean and expresses the result as a percentage, which turns an absolute spread into a relative one. A standard deviation of 10 is uninterpretable on its own: it is enormous if the mean is 12 and negligible if the mean is 5000. Expressing it as a ratio removes the units and the scale entirely. In the calculator, the default list has a coefficient of variation of about 35.5 percent while a tighter set of exam scores has about 10.8 percent, which tells you at a glance that the first list is scattered relative to its own size while the second is not. This is what makes it the right statistic for comparing datasets measured in different units, such as comparing the relative variability of daily sales in euros against relative variability of daily sales in dollars, or across populations with very different scales. One caveat: it becomes meaningless when the mean is close to zero, since you are dividing by something tiny.

What is the standard error of the mean, and how is it different from the standard deviation?

The standard error of the mean, written SEM, is the sample standard deviation divided by the square root of n. It answers a different question from the standard deviation itself. The standard deviation describes how far your individual data points sit from the mean; the standard error describes how precisely your estimate of the mean is known. Because the mean of many observations settles down around the true value, its uncertainty shrinks as more data arrives, specifically at a rate of one over the square root of n, which means you need four times as much data to halve the standard error and sixteen times as much to quarter it. For the default list of ten values with a sample standard deviation of 10.898, the standard error is about 3.45, so a mean of 29.1 carries an uncertainty on the order of plus or minus three or so. When you report a mean in a paper or a report, reporting the standard error alongside it tells the reader how much to trust it. Do not confuse it with the standard deviation of the raw data, which is usually the larger of the two.

Why does my mode say no mode?

The calculator reports a mode only when at least one value occurs more than once, because a list where every value appears exactly once genuinely has no mode. This is the strict textbook definition and it differs from how some software behaves. Excel, for instance, can return multiple results or the lowest value in ways that surprise people. The tool also reports all tied modes rather than picking one, so the list 2, 4, 4, 4, 5, 5, 7, 9 returns both 4 and 5, since each appears three times. A bimodal distribution is often more informative than either value alone: two peaks usually mean your data contains two distinct populations, such as two customer groups or two operating conditions, and lumping them into one mean and one standard deviation will hide that structure. When you see two modes, split the data and analyse the halves separately.

Related Tools

Age Calculator

Figuring out someone's exact age isn't as simple as subtracting birth year from current year. Leap years, different month lengths, and time zones all make manual calculations tricky. Our Age Calculator does the heavy lifting for you — just plug in a date of birth and you'll get precise results down to the years, months, weeks, days, hours, and even minutes lived. Whether you're filling out official forms that require exact age, planning a milestone birthday party, or just curious about how many days you've been on this planet, this tool gives you instant, accurate answers. It also shows you fun extras like your zodiac sign, birthstone, and countdown to your next birthday.

Age Difference Calculator

Ever wonder exactly how many years, months, and days separate two birthdays? Our Age Difference Calculator makes it effortless. Enter two birthdates and instantly see the precise time difference in years, months, weeks, days, hours, and even minutes. Whether you are checking the age gap between you and your partner, figuring out exactly how much older your sibling is, comparing generational gaps between family members, or satisfying pure curiosity, this tool gives you the full breakdown. Context labels make it fun too. All calculations run in your browser for complete privacy.

Average Calculator

Need to find the average of a bunch of numbers fast? Whether you're a student calculating your GPA, a teacher figuring out class averages, a business analyst computing monthly sales figures, or just someone trying to split a restaurant bill fairly, our Average Calculator handles it all. Enter any set of numbers — separated by commas, spaces, or line breaks — and instantly get the mean, median, mode, range, count, and sum. No more fumbling with spreadsheet formulas or second-guessing your mental math. The calculator also shows you the count of numbers entered and their total sum, giving you a complete statistical snapshot of your dataset in one glance.

Scientific Calculator

Sometimes a basic four-function calculator just won't cut it. When you need to solve complex equations, work with trigonometric functions, calculate logarithms, or handle exponents and roots, you need a Scientific Calculator that can keep up. Our full-featured online scientific calculator gives you everything from basic arithmetic to advanced mathematical operations — all in your browser, with no app to download. It supports trigonometric functions (sin, cos, tan), inverse trig, logarithms (natural and base-10), exponentials, factorials, powers, roots, and constants like pi and e. Whether you're a high school student tackling algebra, an engineering student working through calculus, or a professional who needs quick computations on the job, this tool has you covered.

Grade Calculator

Wondering what you need on the final exam to get an A? Trying to figure out your current grade halfway through the semester? Our Grade Calculator takes the stress out of tracking your academic performance. Enter your assignments, quizzes, tests, and their respective weights or points, and the calculator instantly shows your current overall grade. You can also set a target grade and find out exactly what score you need on remaining assessments to hit that goal. Whether you're a high school student aiming for college, a college student protecting your GPA, or a parent helping your child stay on top of their studies, this tool gives you clarity and control over your academic standing.

Date Calculator

Planning an event 90 days from now? Need to figure out exactly how many weeks until your due date? Trying to calculate the number of business days between today and a deadline? Our Date Calculator takes the guesswork out of date math. Add or subtract days, weeks, months, or years from any date, or calculate the exact duration between two dates in days, weeks, months, or years. It handles leap years automatically, can exclude weekends for business day calculations, and gives you results that are dead simple to read. No more counting calendar squares on your fingers.

Percentage Change Calculator

Stock went from $50 to $75 — is that good? Your website traffic dropped from 10,000 to 8,000 visitors — how worried should you be? Numbers are everywhere, but raw figures don't tell the full story. Our Percentage Change Calculator instantly shows you the relative increase or decrease between any two values, expressed as a clear percentage. No more mental math errors or squinting at spreadsheets. Whether you're tracking investment returns, measuring business growth, comparing test scores, or analyzing any before-and-after scenario, this tool gives you the percentage change in a single click.

Lunar Age Calculator

The Lunar Age Calculator determines your age according to the traditional Chinese lunar calendar system. Unlike the Western Gregorian method that counts age from the date of birth, traditional East Asian age reckoning considers a person to be one year old at birth and adds a year at each Lunar New Year. This calculator helps you quickly find your lunar age for cultural celebrations, family gatherings, or personal curiosity. Simply enter your Gregorian birth date, and the tool calculates both your traditional lunar age and your international age side by side.

Quadratic Equation Solver - Find Roots of ax²+bx+c=0

Every quadratic equation reduces to a single question: for which values of x does ax² + bx + c equal zero? The quadratic formula answers it, but the formula on its page rarely helps you because it hides the two steps that actually matter, which are understanding what the discriminant tells you and recognising when the equation has one repeated root, two real roots or no real roots at all. This free quadratic equation solver does both. Enter your coefficients a, b and c and you immediately get every root, the discriminant, the axis of symmetry, the vertex and the factored form, with the working shown step by step rather than just an answer. It handles the cases students and exam boards care about, including negative and fractional coefficients, a coefficient of zero which degenerates into a linear equation, and complex roots when the discriminant is negative. It is equally useful for practical work: engineers use the discriminant to decide whether two quadratic design curves intersect at all, economists use the vertex to locate the profit-maximising price for a revenue-minus-cost model, and photographers use it to find the focus of a parabola. Nothing is uploaded, every calculation happens in your browser, and the answer appears as you type rather than after you press a button.

Aspect Ratio Calculator - Reduce, Identify and Scale Ratios

Every time you set a crop, export a thumbnail, choose a background size or embed a video, you are really being asked the same question: what is the ratio of width to height, and what does everything else need to be so the shape does not distort? People answer it by hand in three different ways and get three different numbers, because a ratio such as 1920:1080 and 16:9 describe the same shape but only one of them has been reduced, and the decimal form 1.7778 is a lossy stand-in for an exact relationship. This free aspect ratio calculator removes the guesswork. Enter a width and a height and it immediately finds the greatest common divisor, divides both sides by it to give the ratio in lowest terms, and shows you the decimal value and the percentage alongside the original pair. It recognises when your dimensions match a well-known format and tells you so, which is how you discover that a 1366 by 768 screen is not really 16:9, but 683:384. A live preview block draws the shape at the correct proportions so a glance confirms what the numbers mean. The preset row covers 16:9, 4:3, 3:2, 1:1, 21:9, 9:16, 3:4, 5:4 and 2:1 in one click, and the panel underneath explains why every sheet of A-series paper is defined by an irrational ratio. Finally, the target width section answers the question you actually have most often: if my picture is 3000 pixels wide and I need it 1280 pixels wide without stretching it, how tall must it be? You type the width you need and get the matching height and the exact scale factor. Everything runs client-side, nothing is uploaded, and the answers update as you type.

Popular Tools

EMI Calculator

Planning to take a home loan, car loan, or personal loan and wondering what your monthly payment will look like? Our...

BMI Calculator

Ever stepped on a scale and wondered what that number actually means for your health? Our BMI calculator takes the gu...

Body Fat Calculator

Have you ever felt like the scale does not tell the whole story? You can weigh the same as someone else but look comp...

CAGR Calculator

When you invest in stocks, mutual funds, or any market-linked asset, one number tells you the real story of how your...

Unit Converter

From cooking to construction, from science to shopping, unit conversion is one of those things you need all the time...

JSON Formatter

Format, beautify, and validate JSON data instantly with our free online tool. Paste raw JSON to get a properly indent...

QR Code Generator

Need a professional QR code for your website, business card, event, product packaging, or marketing campaign? Our fre...

Salary Calculator

Understanding your true take-home pay is essential for budgeting, planning, and making smart career decisions, yet mo...

Tip Calculator

Dining out, getting a haircut, taking a taxi, or receiving any kind of personal service often comes with the question...

Word Counter

Need an accurate word count for your essay, article, or document? This word counter gives you instant, precise counts...

Color Code Converter

Color Code Converter is a free online tool that instantly converts color values between different formats used in web...