Histogram Calculator

Create histogram-friendly bin tables with frequencies and densities for any numeric dataset.

Data points: 16

Bins used: 4

BinFrequencyRelative FrequencyDensity
[2.00, 7.00)50.3130.063
[7.00, 12.00)60.3750.075
[12.00, 17.00)20.1250.025
[17.00, 22.00]30.1880.037

How to Use This Calculator

  1. Paste raw numeric observations above.
  2. Specify the number of histogram bins or accept the default.
  3. Use the table to plot rectangle heights (frequency or density) across bin intervals.
  4. Ensure all bins have equal width for standard histograms.

Formula

Density = Frequency / (Total count × Bin width)

Use densities when comparing histograms with differing bin widths; otherwise, raw frequencies suffice.

Frequently Asked Questions

Why are densities needed?

Densities normalize frequencies by bin width, ensuring areas correspond to probabilities.

How should I choose bin widths?

Start with Sturges’ rule or the square-root rule, then adjust for clarity or domain requirements.