Histogram Maker
With this histogram maker you paste numbers, pick a binning rule and get the chart, a frequency distribution table with counts, relative and cumulative frequencies, and summary statistics, all calculated locally in your browser.
Source: Wikipedia – Histogram (Klassenzahl: Sturges, Rice, Scott, Freedman–Diaconis). Updated: .
How it is calculated
A histogram shows how data values spread across bins: the area of each bar stands for how often values fall there. At a glance it reveals centre, spread, skew and outliers of a data set.
How it is calculated
First the number of bins is chosen. Sturges uses k = ⌈log₂(n) + 1⌉, the square-root rule k = ⌈√n⌉, Rice k = ⌈2 · ∛n⌉. Freedman-Diaconis and Scott set the width from the data (h = 2 · IQR / ∛n and h = 3.49 · s / ∛n) and cope better with outliers and large samples respectively. The calculator rounds the width up to 1, 2 or 5 times a power of ten so the axis stays readable. Bins are closed on the left, [a; b), and the last bin is closed on both sides.
Good to know
- There is no single correct number of bins: try two rules if the picture looks too jagged or too smooth.
- In a histogram the bars touch, unlike a bar chart for categories.
- The table lists absolute, relative and cumulative frequency, as needed for homework and reports.
- Your data stays in the browser; nothing is uploaded.
Frequently asked questions
How do you make a histogram?
Split the values into equal-width bins, count the values in each bin and draw the counts as touching bars. The tool does all three steps.
How do I make a frequency distribution table?
Paste your values and pick a binning rule. The table under the chart lists every bin with its count, relative frequency and cumulative frequency: that table is the frequency distribution, and the histogram is its picture.
How many bins should a histogram have?
A rule of thumb is Sturges, k = 1 + log₂(n): about 6 bins for 30 values and 8 for 100. Freedman-Diaconis adapts the width to the spread of the data.
What is the difference between a histogram and a bar chart?
A histogram shows the distribution of numeric data in continuous bins. A bar chart compares separate categories, and its bars have gaps.
Can I save the histogram?
Yes, as a PNG (double resolution, white background) or as an SVG for documents and slides.
Sources and legal basis
- Wikipedia – Histogram (Klassenzahl: Sturges, Rice, Scott, Freedman–Diaconis)
- Wikipedia – Histogramm (Klassenbildung, Häufigkeitsdichte)
- NIST/SEMATECH e-Handbook of Statistical Methods – Histogram
As of: · Editorial policy
Related tools
- Online chart makerMake a chart online: type your data or paste it from Excel, pick a bar, line or pie chart and save as PNG or SVG. Free, no sign-up, data stays local.
- Standard deviation calculatorStandard deviation calculator for a list or frequency table: switch between sample (s) and population (σ), see every step in a table, plus a box plot.
- Normal Distribution CalculatorNormal distribution calculator: probability of at most, at least or between two values, z-score and percentile (inverse), with steps and the 68-95-99.7 rule.
- Percentile CalculatorPercentile calculator for a data set: value at the 90th or 95th percentile, percentile rank of a value, quartiles – Excel methods and nearest rank with working.
- Correlation Coefficient CalculatorCorrelation coefficient calculator for paired data: Pearson r and Spearman ρ with p-value, confidence interval, R² and regression line. Paste a table.
- Linear Regression CalculatorLinear regression calculator: regression line, slope, R², standard errors and prediction from your data pairs, with scatter plot and residuals. Free.
- Online CalculatorCalculator online, free and instant: type or tap and see the answer as you go – order of operations, brackets, percent, square root, steps and a history list.
- WAM calculator (weighted average mark)WAM calculator for Australian uni students: enter each mark with its credit points or units of credit and get your weighted average mark with the working.
- Mach to mph converterMach to mph: enter a Mach number or a speed, set the air temperature and see mph, km/h, m/s and knots – with a table of the speed of sound by temperature.