Histogram Generator Form
Example Data Table
This sample dataset helps you test bin rules and output sections quickly.
| 12 | 15 | 18 | 19 | 21 | 22 | 22 | 23 | 24 | 24 |
|---|---|---|---|---|---|---|---|---|---|
| 25 | 26 | 27 | 28 | 28 | 29 | 30 | 31 | 31 | 32 |
| 33 | 34 | 35 | 36 | 37 | 38 | 38 | 39 | 40 | 42 |
Click Load Example Values to insert this sample into the calculator form.
Formula Used
Range = Maximum value − Minimum value
Bin width = Range ÷ Number of bins
Frequency = Count of values inside each class interval
Relative frequency = (Bin frequency ÷ Total values) × 100
Cumulative frequency = Running total of all previous frequencies
Sturges rule = ceil(log2(n) + 1)
Square-root rule = ceil(√n)
Rice rule = ceil(2 × n1/3)
Scott rule width = 3.5 × s ÷ n1/3
Scott bins are estimated as range divided by Scott width.
How to Use This Calculator
- Enter your numeric dataset into the values box.
- Select a bin method or choose manual bins.
- Set decimal precision for interval labels and summary values.
- Add a chart title that matches your analysis.
- Choose the density line if you want extra visual context.
- Press Generate Histogram to show results above the form.
- Review the graph, frequency table, and summary metrics.
- Download the frequency table as CSV or PDF.
Frequently Asked Questions
1. What does a histogram show?
A histogram groups numeric values into intervals and counts how many values fall inside each interval. It helps you see spread, concentration, gaps, and possible skewness in a dataset.
2. Why do different bin methods change the chart?
Each rule estimates a different number of bins. More bins reveal finer detail. Fewer bins smooth the pattern. Changing the rule can highlight or hide clusters, peaks, and empty ranges.
3. When should I use manual bins?
Use manual bins when your class intervals must match a report, course requirement, or domain standard. Manual control is also helpful when you want consistent charts across several datasets.
4. What is relative frequency?
Relative frequency converts a bin count into a percentage of the full dataset. It makes comparisons easier when two datasets have different sample sizes.
5. Why is cumulative frequency useful?
Cumulative frequency shows the running total up to each interval. It helps you estimate thresholds, percentiles, and how quickly the data accumulates across the distribution.
6. Can I paste values from spreadsheets?
Yes. You can paste numbers separated by commas, spaces, semicolons, or line breaks. Invalid text entries are ignored and listed as a warning after submission.
7. What happens if all values are the same?
The calculator creates one centered interval so the histogram still renders correctly. This avoids dividing by zero when the range is zero.
8. What is the density line option?
The density line scales each bin by sample size and width. It gives a smoother reference for shape, especially when you compare differently sized intervals.