Home › Calculators › Histogram Maker

Histogram Maker

Paste a list of numbers and choose how to group them into bins. You instantly get a histogram, a frequency distribution table with relative and cumulative frequencies, and summary statistics, ready to download as PNG or CSV.

Last updated:

Bins

Chart

Frequency table

Advertisement
Advertisement

How to use the Histogram Maker

  1. Paste your numbers separated by commas, spaces, tabs or new lines (a spreadsheet column works).
  2. Choose the bins: keep Auto, enter a number of bins, or set an exact bin width and start value.
  3. Pick the y-axis (frequency, relative frequency or density) and options like the normal curve or count labels.
  4. Add a title and axis label, and choose a bar color.
  5. Download PNG for the chart and Download CSV for the frequency table.

How a histogram is built

  1. Find the range: maximum − minimum.
  2. Choose the number of bins k (or a bin width). Bin width = range ÷ k, usually rounded up to a clean number.
  3. Set the bin edges: start at or just below the minimum and add the width repeatedly until the maximum is covered.
  4. Count how many values fall in each bin. A bin [a, b) includes a but not b; the last bin includes its upper edge.
  5. Draw touching bars whose heights are the counts (or relative frequencies).

Example with the sample commute data (n = 40, minimum 12, maximum 95). Sturges' rule gives k = ⌈log₂ 40⌉ + 1 = 7 bins; 83 ÷ 7 ≈ 11.9. The tool then picks the clean width (1, 2, 2.5 or 5 × a power of ten) whose bin count is closest to 7: a width of 10 gives the bins 10–20, 20–30, … 90–100. Choose Number of bins with rounding switched off to get exactly 7 bins of width 11.86.

Bin rules compared

RuleFormulaBest for
Sturgesk = ⌈log₂ n⌉ + 1Small, roughly symmetric data sets (n under about 200)
Square rootk = ⌈√n⌉Quick default used by many spreadsheet tools
Freedman–Diaconiswidth = 2 × IQR ÷ ∛nSkewed data or data with outliers (uses the IQR, which ignores extremes)
Scottwidth = 3.49 × s ÷ ∛nLarger, roughly normal data sets

Too few bins hide the shape; too many make the chart noisy with gaps. If two rules disagree, look at both: real features like two peaks (a bimodal distribution) should appear in either.

Reading the shape

  • Symmetric, bell-shaped: mean ≈ median; the normal curve fits well.
  • Right-skewed (long tail to the right, like incomes or commute times): mean > median.
  • Left-skewed: mean < median.
  • Bimodal: two peaks, often two groups mixed together.
  • Isolated bars far from the rest: possible outliers; check them with the Box Plot Maker.

Frequently asked questions

How many bins should a histogram have?

There is no single right answer. Sturges' rule uses k = ⌈log₂(n)⌉ + 1 bins and works well for small, roughly normal data. The square-root rule uses k = ⌈√n⌉. The Freedman–Diaconis rule sets the bin width to 2 × IQR / ∛n and handles skewed data and outliers better. Try a few and pick the one that shows the shape clearly.

How do I calculate the bin width?

Bin width = (maximum − minimum) ÷ number of bins. For example, data from 12 to 87 with 5 bins gives a width of 75 ÷ 5 = 15, so the bins are 12–27, 27–42, 42–57, 57–72 and 72–87. Rounding the width up to a clean number such as 5, 10 or 20 makes the chart easier to read.

Which bin does a value on the boundary go into?

Bins include their lower edge and exclude their upper edge, written [a, b). A value of exactly 20 with bins 10–20 and 20–30 is counted in 20–30. The last bin also includes its upper edge so the maximum is always counted.

What is the difference between frequency, relative frequency and density?

Frequency is the count of values in each bin. Relative frequency is that count divided by the total, shown as a percentage, so all bars add up to 100%. Density is relative frequency divided by the bin width, so the total area of the bars equals 1, which is what the normal curve is compared against.

What is the difference between a histogram and a bar chart?

A histogram shows the distribution of one numeric variable: the bars touch because the bins cover a continuous range. A bar chart compares separate categories, so its bars usually have gaps and can be reordered.

What does the normal curve show?

It is the bell curve with the same mean and standard deviation as your data, scaled to the histogram. If the bars follow it closely the data is roughly normally distributed; skew, multiple peaks or heavy tails show up as clear departures.

Is my data uploaded?

No. The histogram is calculated and drawn in your browser. Your data is only stored in your browser's local storage so it is still there next time.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Box Plot MakerPaste data to draw box-and-whisker plots with quartiles, IQR and outliers. Download PNG or SVG.Standard Deviation CalculatorStandard deviation, variance, mean, median, mode and quartiles.Mean Median Mode CalculatorFind the mean, median, mode, range, min, max, sum and count of a list of numbers.Scatter Plot MakerPaste X,Y pairs for a scatter plot with trendline, equation, r and R². Download PNG.Photo Color MatchCopy the color grading of a reference photo onto your image (Reinhard color transfer).Cpk CalculatorCp, Cpk, Pp, Ppk and ppm out of spec from your data or mean and standard deviation.Empirical Rule Calculator68-95-99.7 rule ranges from a mean and standard deviation, with a shaded bell curve.Grouped Data CalculatorMean, median, mode, variance and standard deviation from class intervals and frequencies.Weighted Average CalculatorCalculate a weighted mean from values and weights, step by step.Average CalculatorMean, weighted average, median, sum, min and max of any list.A/B Test Significance CalculatorCheck if your A/B test result is statistically significant.Z-Score CalculatorZ-score from a value, mean and SD, plus percentile and p-value; or the value from z.Probability CalculatorFind and, or, not, conditional and at-least-once probabilities from P(A) and P(B).Permutation and Combination CalculatorCalculate nPr and nCr, with or without repetition, as exact big numbers.Confidence Interval CalculatorConfidence interval and margin of error for a mean or a proportion, with steps.Sample Size CalculatorHow many survey responses you need for a given confidence level and margin of error.Percentile CalculatorValue at any percentile, percentile rank of a score, quartiles, IQR and outliers.Correlation Coefficient CalculatorPearson r and Spearman rank correlation with significance and interpretation.Average Order Value CalculatorAverage order value from revenue and orders, plus the revenue impact of raising AOV.Binomial Distribution CalculatorBinomial probabilities P(X = k), at most, at least or between, with mean, variance and chart.Normal Distribution CalculatorNormal probabilities P(X < x), between two values and inverse percentiles, on a shaded bell curve.Poisson Distribution CalculatorPoisson probabilities for a rate λ: exactly k, at most, at least or between, with a chart.T-Test CalculatorOne-sample, two-sample (Welch/pooled) and paired t-tests with p-value and CI.Chi-Square CalculatorChi-square goodness-of-fit and independence tests with p-value and expected counts.P-Value CalculatorOne- or two-tailed p-values from z, t, chi-square or F statistics, with critical values.Variance CalculatorSample and population variance and standard deviation with a step-by-step deviations table.Five Number Summary CalculatorMin, Q1, median, Q3, max, IQR and fences of a data set, with a box plot.Outlier CalculatorFind outliers with 1.5×/3× IQR fences, z-scores or modified z-scores; get the cleaned data.Geometric Mean CalculatorGeometric, harmonic, arithmetic and quadratic means compared, or average growth from % changes.Expected Value CalculatorExpected value, variance and standard deviation from outcomes and their probabilities.One-Way ANOVA CalculatorOne-way ANOVA for 2-10 groups: SS, df, MS, F statistic, p-value, effect size and full table.Bayes Theorem CalculatorPosterior P(A|B) from P(A), P(B|A) and P(B|not A), with a probability tree and table.Coefficient of Variation CalculatorCV % from a dataset (sample or population) with mean, SD and a two-dataset comparison.Critical Value CalculatorCritical values of z, t, chi-square and F for any alpha, tails and degrees of freedom.Dice Probability CalculatorOdds of rolling a sum (exactly, at least, at most) with any dice, plus the full distribution.Effect Size Calculator (Cohen's d)Cohen's d, Hedges' g and Glass's delta from two means, SDs and sample sizes, with CI.Frequency Table GeneratorMake a frequency, relative and cumulative frequency table from numbers or categories.Margin of Error CalculatorSurvey margin of error from sample size, confidence and proportion, with population correction.Z-Test CalculatorOne-sample, two-sample and proportion z-tests with z, p-value, decision and shaded curve.Shannon Entropy CalculatorEntropy of text, data or probabilities in bits, nats or hartleys with a frequency table.Moving Average CalculatorSimple, exponential and weighted moving averages of a data series, with table and line chart.Odds Ratio and Relative Risk CalculatorOdds ratio, relative risk, risk difference, 95% CIs and p-values from a 2x2 table.Standard Error CalculatorStandard error of the mean from data or SD and n, plus SE of a proportion, with CIs.Descriptive Statistics CalculatorPaste data and get mean, median, mode, quartiles, SD, skewness, kurtosis and a histogram.Z-Table (Standard Normal Table)Interactive z-table: find the area for any z-score, or the z-score for a probability.Average Rate of Change CalculatorAverage rate of change of f(x), two points or a data table over [a, b], with the secant line.Binomial Expansion CalculatorExpand (a + b)^n with the binomial theorem: every term, Pascal coefficients and any specific term.Combinations GeneratorList every k-combination of your items, with or without repetition, and copy or export them.Covariance CalculatorSample and population covariance of paired X and Y data, with a step table and scatter plot.Inverse Normal Distribution CalculatorinvNorm: find the x or z value for a left, right, central or two-tail area, with a shaded curve.Permutations GeneratorList all permutations of letters, words or items, with k-permutations and repeats, and export them.Statistical Power CalculatorPower or required sample size for t-tests, proportions and correlations, with a power curve.T Distribution CalculatorStudent's t probabilities and critical values for any df, with the area shaded on the curve.T-Table (Student's t Distribution)Interactive t-table: critical t-values for any df and α, p-values, and a printable full table.
See all 52 Statistics & Probability Calculators →