Skip to main content
StatsPlotMaker

Histogram Maker

Auto Sturges & Scott Binning · Custom Bin Count or Bin Width · Linked Frequency & Cumulative Distribution Table

Sample datasets
Data InputJump to Chart

Paste a single column of numbers or comma/space-separated values.

Binning & Frequency Settings
AP Statistics Unit 2 Quiz Distribution0246810[58, 64.67): 2 (6.7%)258[64.67, 71.33): 4 (13.3%)464.7[71.33, 78): 5 (16.7%)571.3[78, 84.67): 8 (26.7%)878[84.67, 91.33): 7 (23.3%)784.7[91.33, 98]: 4 (13.3%)491.398Quiz Score (%)Frequency
Count (n)
30
Mean (x̄)
80.47
Median
81.5
Sample SD (s)
10.04
Bins (k)
6
Bin Width (w)
6.67
Frequency Distribution Table
Class IntervalFrequencyRelative Freq (%)Cum. CountCum. Freq (%)
[58, 64.67)26.7%26.7%
[64.67, 71.33)413.3%620%
[71.33, 78)516.7%1136.7%
[78, 84.67)826.7%1963.3%
[84.67, 91.33)723.3%2686.7%
[91.33, 98]413.3%30100%
100% Free & Private — All statistical calculations and SVG exports run locally in your browser.
Quick Summary

A histogram groups continuous numerical measurements into touching, equal-width class intervals (bins) to reveal distribution shape, center, spread, and skewness. Choose automatic Sturges or Scott bin rules—or set an exact bin width—and export both the histogram and linked frequency table.

How to Use the Histogram Maker

  1. Step 1

    Paste your numerical dataset

    Enter one column or comma/space-separated measurements. Non-numeric headers are detected automatically.

  2. Step 2

    Tune bin count or bin width

    Start with Sturges or Scott auto-recommended bins, or drag the custom bin slider / enter a fixed class width such as 5 or 10.

  3. Step 3

    Copy the frequency table & chart

    Switch between raw Frequency and Relative Frequency (%), inspect cumulative percentages in the table below, and download PNG, SVG, or CSV.

Histogram Binning Rules & Relative Frequency Formulas

A histogram groups continuous numerical data into contiguous, equal-width class intervals (bins) with no gaps between bars so you can judge shape, center, spread, and modality.

Sturges' Rule (Auto Bin Count)
k = ⌈ log₂(n) + 1 ⌉

Simple textbook rule ideal for small-to-moderate symmetric datasets (n < 200).

Scott's Normal Reference Rule
w = 3.49 · s · n^(−1/3)

Minimizes integrated mean squared error using sample standard deviation s.

Relative Frequency (%)
Rel. Freq = (Bin Count / n) × 100%

Percentage of observations falling inside each interval; sums to 100%.

Bin Boundary Convention
[a, b) with final bin [a, b]

Left-inclusive, right-exclusive intervals prevent any boundary value from being double-counted.

Worked Example

For n = 30 quiz scores spanning 58 to 98 (range = 40), Sturges’ rule recommends k = ⌈log₂(30) + 1⌉ = 6 bins with bin width w = 40 / 6 ≈ 6.67. Setting a custom width of 10 gives clean 10-point grade bands ([58, 68), [68, 78), etc.).

Common Homework & Lab Report Mistakes to Avoid

  • Leaving gaps between histogram bars

    Unlike categorical bar charts, histogram bars must touch because the horizontal axis represents a continuous number scale.

  • Picking too few or too many bins

    Using 2 bins hides peaks and skewness, while 25 bins on 20 points creates noisy spikes. Start with Sturges or Scott and adjust slightly for clean round class widths.

  • Using a histogram for categorical survey responses

    If your X-axis consists of category names (like majors or study locations) instead of numeric intervals, use a Horizontal Bar Chart instead.

Recommended Statistics Guides

Frequently Asked Questions

How many bins should a histogram have?+

For most classroom datasets (15–100 values), 5 to 10 bins work best. This tool calculates both Sturges’ rule (⌈log₂(n) + 1⌉) and Scott’s rule automatically, and lets you switch to a custom bin count or round bin width.

What is the difference between a histogram and a bar graph?+

A histogram displays the frequency distribution of continuous numerical data using touching bars over numeric intervals, whereas a bar graph compares discrete categories with gaps between bars.

Which bin does a boundary value belong to?+

Each bin follows the standard half-open interval convention [start, end), meaning the left endpoint is included and the right endpoint belongs to the next bin—except the last bin [start, end], which includes the dataset maximum.

Can I create a relative frequency histogram?+

Yes. Check Relative frequency (%) in Binning & Frequency Settings to convert the Y-axis and bar labels from raw counts to percentages totaling 100%.

Does this histogram maker generate a frequency distribution table?+

Yes. Every change updates the linked Frequency Distribution Table below the chart with Class Interval, Frequency, Relative Frequency %, Cumulative Count, and Cumulative %, which you can export as CSV.

How do I describe the shape of a histogram?+

Check four traits (SOCS): Shape (symmetric, left-skewed, right-skewed, unimodal, or bimodal), Outliers/gaps, Center (mean/median), and Spread (range/standard deviation).

More Free Statistical Plot Makers