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
- Step 1
Paste your numerical dataset
Enter one column or comma/space-separated measurements. Non-numeric headers are detected automatically.
- 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.
- 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.
Simple textbook rule ideal for small-to-moderate symmetric datasets (n < 200).
Minimizes integrated mean squared error using sample standard deviation s.
Percentage of observations falling inside each interval; sums to 100%.
Left-inclusive, right-exclusive intervals prevent any boundary value from being double-counted.
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.
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
Plot normal curves for any μ and σ with 68-95-99.7 bands, shaded [a, b] probability & Z-scores.
Plot X–Y pairs with linear, quadratic, or exponential trendlines, R², and Pearson r.
4-quadrant coordinate plane with origin axes, custom tick steps, labels, and line segments.
Compare 1–6 groups with TI-84 Exclusive vs Excel Inclusive quartiles and 1.5×IQR outliers.
Stacked dot plots with Mean, Median, and Mode vertical reference markers.
Single-sided and back-to-back stem-and-leaf plots with sorted leaves and automatic Key.
Long-label friendly horizontal bars with automatic sorting and percentage annotations.
Compare multiple trends over time with straight or smooth curve interpolation.
Clean pie and donut charts with automatic percentages, degrees, and print-ready palettes.
Multi-group Gaussian KDE density violins with embedded IQR box plots, jitter points & Silverman bandwidth.
Meta-analysis forest plots with 95% CIs, inverse-variance weights, I², and fixed/random-effects diamonds.
Assess normality with theoretical Z quantiles, Blom/Hazen positions, 95% confidence bands, and R².