Prime Number Generator
Generate the first N prime numbers or list all primes inside a custom range. Includes prime count, largest prime, total sum, average prime gap, and twin-prime pair count for quick number-theory exploration.
Calculate all six types of mean simultaneously — Arithmetic, Geometric, Harmonic, Quadratic (RMS), Weighted, and Trimmed. Paste any dataset and instantly get the right average for your context, plus median, mode, standard deviation, variance, and coefficient of variation.
10 values parsed
In statistics, the mean is a measure of central tendency — a single value that represents the "centre" of a dataset. But "mean" is not one formula: there are five distinct types, each appropriate in different contexts. This calculator computes all of them simultaneously so you can choose the right one for your data.
| Type | Formula | Best For |
|---|---|---|
| Arithmetic | Σxᵢ / n | Symmetric data, test scores, temperatures |
| Geometric | ⁿ√(x₁ × x₂ × … × xₙ) | Growth rates, investment returns, ratios |
| Harmonic | n / Σ(1/xᵢ) | Speeds, rates, frequencies |
| Quadratic | √(Σxᵢ² / n) | RMS — AC electricity, signal processing |
| Weighted | Σ(wᵢ·xᵢ) / Σwᵢ | Grades, portfolio returns, survey data |
| Trimmed | Arithmetic mean after trimming | Robust estimate, removes outlier effect |
The classic average. Add all values, divide by count. Sensitive to outliers.
Equivalent to the arithmetic mean of logarithms. Use for multiplicative processes. Requires all positive values.
Reciprocal of the arithmetic mean of reciprocals. Ideal for speed, frequency, and rate problems.
Root mean square. Used in engineering for AC voltage/current and signal processing.
Each value contributes proportionally to its weight. Higher weight = more influence on the result.
Robust to outliers. A 20% trimmed mean is very close to the median for heavily skewed data.
A student's grades are weighted by credit hours: Mathematics (A = 90) × 4 credits, English (B = 80) × 3 credits, PE (A = 95) × 1 credit.
| Subject | Grade | Credits (w) | Grade × Credits |
|---|---|---|---|
| Mathematics | 90 | 4 | 360 |
| English | 80 | 3 | 240 |
| PE | 95 | 1 | 95 |
| Weighted Mean | 695 ÷ 8 | 86.875 | |
Arithmetic mean = (90+80+95)/3 = 88.3 — but the weighted mean = 86.875 better reflects the course importance.
A fund returns +20%, −10%, +35% over three years. What is the average annual compound return?
A car travels 100 km at 60 km/h, then 100 km at 40 km/h. What is the average speed?
A dataset of house prices: $200K, $210K, $215K, $220K, $225K, $230K, $1.5M (outlier). The 10% trimmed mean removes the extreme values and gives a more representative estimate.
Mean Calculator is part of the Math & Statistics Calculators collection. If you want a broader view of similar workflows, open the Math & Statistics Calculators category page or browse all QuickTools categories.
Common next steps after this tool include Prime Number Generator, Ethereum ROI Calculator and Random Number Generator.
Generate the first N prime numbers or list all primes inside a custom range. Includes prime count, largest prime, total sum, average prime gap, and twin-prime pair count for quick number-theory exploration.
Calculate Ethereum ROI, net profit, annualized return, break-even sell price, and holding-period performance using ETH buy price, sell price, amount, dates, and fees.
Generate random numbers using three statistical distributions — Integer (discrete uniform), Float (continuous uniform), and Normal (Gaussian bell curve). Supports seeded output for reproducibility, no-duplicates mode, sort order, and instant statistics including mean, median, standard deviation, and mode.
Calculate your Bitcoin investment return, profit/loss, and annualized ROI. Enter buy/sell price, amount, dates, and fees to see your crypto performance.
Convert short MP4, WebM, MOV, AVI, MKV, and other video clips into GIFs online with trim controls, frame-rate options, and private in-browser processing.
Create animated GIFs from a sequence of images online with per-frame delay, output width, loop count, and private in-browser processing — no upload required.
Convert an animated GIF into a compact MP4 or WebM video file online with output width, duration, and FPS controls — processed entirely in your browser, no upload required.
Convert an animated GIF into a compact WebM video file online using VP9 or VP8 — output width, duration, and FPS controls with private in-browser processing, no upload required.