Math calculator

Cauchy Distribution Calculator

The distribution with no mean.

Averaging, and why it fails here

The reference case. Its quartiles sit at ±1, so the interquartile range is exactly 2γ.

Cauchy(x₀ = 0.000000, γ = 1.000000)

P(X ≤ 2.000000) = 0.852416

Density 0.063662. The median is 0.000000 and the interquartile range is exactly 2γ = 2.000000 — but the mean and the standard deviation do not exist, so no amount of data will estimate them.

Median

0.000000

= the location

Mean

does not exist

the integral diverges

Variance

does not exist

so does this one

Interquartile range

2.000000

= 2γ, exactly

Q1

-1.000000

x₀ − γ

Q3

1.000000

x₀ + γ

95th percentile

6.313752

already far out

99th percentile

31.820516

31.8205γ from centre

x = 2.0000-8.008.00

The peak looks unremarkable and the tails are the whole story. They fall off as 1/x² rather than exponentially, which is slow enough that the integral defining the mean does not converge.

What happens when you average

1,200 simulated samples at each size, from a standard Cauchy and a standard normal. The spread of the SAMPLE MEAN is measured by its interquartile range, because the variance of these means does not exist either.

Interquartile range of the sample mean against sample size, for Cauchy and normal populations
Sample sizeCauchy: IQR of the meanNormal: IQR of the meanNormal, predicted 1.349/√n
n = 11.76641.34271.3490
n = 101.97930.41560.4266
n = 1002.02330.13240.1349
n = 10002.07830.04150.0427

The Cauchy column does not move. Averaging a thousand observations gives you a number as uncertain as averaging one, and the normal column beside it shows what you were expecting to happen instead.

The sample mean of n Cauchy draws has exactly the same distribution as a single draw. Not approximately, and not only for large n — for every n, as an exact algebraic result. The law of large numbers requires a finite mean to converge to, and there is none. The central limit theorem has the same requirement and fails here for the same reason.
So use the median, and report the scale rather than a standard deviation. The sample median of Cauchy data does converge, at the usual rate, and the interquartile range is a well-defined measure of spread equal to 2γ. Every summary statistic that works here is rank-based, which is what “heavy-tailed” costs.
Matched on interquartile range, the Cauchy tail beyond five sigma is 148,898times heavier than a normal’s. A normal with the same middle 50% puts about 1 in 3.5 million beyond that point; this distribution puts about 1 in 23. That is the gap between a model that treats extreme events as impossible and one that does not.

What this tool shows

The interquartile range of a Cauchy sample mean is 1.85 at n = 1 and 2.07 at n = 1,000. It does not shrink. For normal samples the same statistic falls from 1.365 to 0.0436 over that range, exactly as 1.349/√n predicts. The tool runs both experiments side by side, because this is the cleanest counterexample to the law of large numbers there is.

  • PDF, CDF and quantiles for any location and scale
  • The averaging experiment: Cauchy against normal, at four sample sizes
  • Quartiles, and the interquartile range that equals exactly 2γ
  • Why the mean and variance do not exist, rather than being hard to compute
  • How much heavier the tail is than a normal matched on interquartile range
  • The Lorentzian form, which is the same distribution under another name
No mean LLN fails Experiment run Quantiles exact

No mean, no variance. Use the median.

Updated 12 September 2026 · Works in any browser, no installation

The Cauchy distribution has a well-defined median and no mean at all. Its density falls off as 1/x², which is slow enough that the integral defining the expected value does not converge — so the central limit theorem and the law of large numbers both simply do not apply, and the sample average never settles down however much data you collect.

At a glance

Formula shown
The density is f(x) = 1 / (πγ[1 + ((x − x₀)/γ)²]) and the CDF is F(x) = ½ + arctan((x − x₀)/γ)/π, which inverts in closed form to x₀ + γ·tan(π(p − ½)). The quartiles sit at x₀ ± γ, so the interquartile range is exactly 2γ. The mean integral ∫x·f(x)dx diverges at both ends, and so does every higher moment — there is no mean, no variance, no skewness and no kurtosis.
Scenario support
Resonance line shapes in physics and spectroscopy, the ratio of two independent normal variables, heavy-tailed financial returns used as a stress model, robustness teaching, and any situation where a sample mean refuses to converge.
Educational estimate
Planning support from the values you enter — not professional advice.

Averaging a thousand values is no better than taking one

This is the property that makes the Cauchy distribution worth a page of its own, and it is exact rather than approximate.

The sample mean of n Cauchy draws has exactly the same distribution as a single draw. Not approximately, and not only asymptotically — for every n, as an algebraic result about the characteristic function. Averaging is a no-op.

The tool measures it rather than stating it. 1,200 simulated samples at each of four sizes, with the spread of the sample mean reported as an interquartile range — because its variance does not exist either. The Cauchy column reads 1.85, 2.07, 1.95, 2.09 at n = 1, 10, 100 and 1,000.

The normal column beside it is what you expected to happen. 1.365, 0.4313, 0.1339, 0.0435 — each within about 1% of 1.349/√n. That law is what the Cauchy column is ignoring.

The law of large numbers needs a finite mean to converge TO. There is none here, so there is nothing for the average to approach. The central limit theorem needs a finite variance, which is also absent. Both theorems are silent rather than approximately true.

So every routine built on averaging fails. Confidence intervals from a standard error, t-tests, least squares, control limits: all of them assume a quantity that does not exist for this distribution.

What “has no mean” actually means

It is a stronger statement than “the mean is hard to estimate” or “the mean is infinite”.

The integral diverges at both ends, in opposite directions. ∫x·f(x)dx runs to +∞ on the right and −∞ on the left, and the two do not cancel in any well-defined way. The expected value is undefined, not infinite.

Which is why the sample mean wanders rather than growing. A distribution with an infinite mean would give a sample average that climbs steadily. This one gives an average that jumps around forever, dragged by whichever extreme value arrived most recently.

The median is perfectly well behaved. It exists, it equals the location parameter, and the sample median converges to it at the usual rate. Everything that works on Cauchy data is rank-based.

The interquartile range is exactly 2γ. The quartiles sit one scale either side of the location, which follows immediately from arctan(±1) = ±π/4. So a perfectly good measure of spread exists — it is just not the standard deviation.

And the parameters are called location and scale for that reason. Calling x₀ “the mean” and γ “the standard deviation” is not a shorthand; it names two things that do not exist.

How heavy the tails really are

“Heavy-tailed” is qualitative until you put two distributions on the same footing and compare.

Match a normal to the same interquartile range and look five sigma out. The normal puts about 1 in 3.5 million beyond that point. The Cauchy puts about 1 in 12 — the tool computes the exact ratio for your parameters.

The density falls as 1/x² rather than exponentially. That single difference in decay rate is the whole story: a normal tail dies faster than any polynomial, and this one does not die at all in the sense the moment integrals need.

So the 99th percentile is already far out. At γ = 1 it sits at 31.8, against 2.33 for a standard normal. A distribution whose middle half spans 2 units has a 1-in-100 event at 32.

This is why it is used as a stress model. Where a normal treats a ten-sigma move as impossible, a Cauchy treats it as a Tuesday. Neither is a description of any particular market; the point is that the choice of tail decides what your model calls impossible.

Where it turns up, on purpose and by accident

Three places it is the correct model, and one where it appears without being invited.

The ratio of two independent standard normals is exactly Cauchy. Not approximately. Any statistic that divides one roughly-normal quantity by another roughly-normal quantity centred near zero inherits this behaviour, which is a common and unrecognised source of wild estimates.

Resonance line shapes are Lorentzian, which is the same function. In spectroscopy and particle physics the distribution is written with a full width at half maximum of 2γ and called a Breit-Wigner or Lorentzian curve. The physics named it independently.

The angle of a randomly pointed beam gives one. Spin a line uniformly and record where it crosses a fixed axis: the intercepts are Cauchy distributed. That construction is the shortest proof that the tails must be this heavy — a nearly parallel line lands arbitrarily far away.

And it appears as the t-distribution with one degree of freedom. A t-distribution on 1 df IS a standard Cauchy, which is why a t-test on two observations has no useful power: the reference distribution has no variance.

Working with data that might be Cauchy

You rarely know in advance. What you can do is notice, and then stop using the tools that assume otherwise.

The diagnostic is the running mean. Plot the sample average as observations accumulate. Normal-ish data settles into a narrowing band; Cauchy-ish data keeps jumping to wherever the latest extreme value drags it, with no sign of convergence at any n.

A running standard deviation does the same thing, more visibly. Each new extreme value ratchets it upward and it never comes back down, which is the signature of an infinite or undefined second moment.

Switch to the median and the interquartile range. Both exist, both converge, and both are what the trimmed mean family generalises. A trimmed mean at any positive fraction has a finite variance even here, which is the practical reason robust estimators exist.

And be careful with ratios. Dividing by a quantity that can be near zero is the most common way ordinary data acquires Cauchy tails, and it is invisible until the estimates start misbehaving.

Reporting heavy-tailed data

Four habits, and the first one removes most of the damage.

Do not report a mean and a standard deviation. They will be computed without error and mean nothing. The median and the interquartile range are the correct pair, and they are no harder to read.

Say which parameters you fitted. Location and scale are not mean and standard deviation, and a reader who assumes they are will get the tail behaviour badly wrong.

Report a quantile rather than a multiple of sigma. “Three sigma” has no meaning without a variance. “The 99th percentile is 31.8” is exact and needs no moments.

And show the running-mean plot if you are claiming convergence. It is the cheapest evidence that an average is settling, and its absence is the cheapest sign that it is not.

Sources and methodology

References for the Cauchy distribution and heavy tails.

Method. The PDF, CDF and quantile function are the exact closed forms, so no numerical integration or inversion is involved and the quartile identity IQR = 2γ holds to machine precision. The averaging experiment uses a seeded generator, so the table is identical on every render and inside the verification suite — which checks both that a repeated run reproduces it and that the Cauchy interquartile range fails to shrink while the normal one tracks 1.349/√n to within 12% at every size tested. The density is confirmed to integrate to its own CDF range by Simpson’s rule over a wide window, and the CDF is checked monotone across 400 points. That engine is verified on every change against 75 assertions. The count and the per-case breakdown are published on the formula verification page.

Related calculators

Where this goes next:

t-DistributionProbabilities and critical values at any degrees of freedom including fractional ones, with the percentage gap from the normal printed — 4.199% at df = 30, where the textbooks say to switch to z, and df must reach 4,746 before it rounds to 1.960.
Central Limit TheoremComputes exact sampling distributions instead of simulating them, so you can see what a nominal 95% interval really covers — and that the two-sided figure hides a tail 36% too large.
Pareto DistributionReports which α your “80/20” actually needs — log 5 / log 4 = 1.160964, and nothing else — plus which moments exist: no mean below α = 1, no variance below α = 2.
Laplace DistributionFits by maximum likelihood and shows the location estimate IS the sample median, with the log-likelihood at the mean beside it — the fact that least-absolute-deviations regression is built on.
Trimmed MeanTrimmed and Winsorized means at any fraction, plotted across the full sweep — because a 0% trim is the arithmetic mean and a 50% trim is exactly the median, so the trim fraction is a dial between them.
Normal DistributionProbabilities under a normal curve in all four directions with the region shaded — and the empirical rule given exactly, because two standard deviations is 95.45% and the 95% everyone quotes sits at 1.96σ.

More in Math, or browse all calculators.

Educational use disclaimer

An educational tool. Fitting a Cauchy distribution to data is a strong claim about its tails — one that changes what your model treats as possible — and a sample that merely contains a few large values is usually better handled with a robust estimator than by adopting a distribution with no mean.

How we calculate · Found an error? email us

Authorship & verification

Written and maintained by , a business operator who builds spreadsheet-based calculators.

What's changed (5 updates)

Published 12 September 2026

  1. Published the distribution with no mean, and ran the experiment rather than describing it: the interquartile range of a Cauchy sample mean is 1.85 at n = 1 and 2.07 at n = 1,000. It does not shrink.
  2. The normal column beside it is what people expect to happen - 1.365, 0.4313, 0.1339, 0.0435 at the same four sizes, each within about 1% of 1.349/sqrt(n). That law is what the Cauchy column ignores.
  3. The sample mean of n Cauchy draws has exactly the same distribution as a single draw, for every n. The law of large numbers needs a finite mean to converge to and there is none, so it is silent rather than approximately true.
  4. Spread is reported as an interquartile range because the variance of those means does not exist either. The IQR equals exactly 2*gamma, which follows from arctan(1) = pi/4.
  5. The simulation is seeded and reproducible, and the suite verifies both that a repeated run matches and that the Cauchy IQR fails to shrink while the normal one tracks 1.349/sqrt(n).

Add this calculator to your site

Responsive embed — and private: nothing your visitors type leaves their browser.