Histogram Calculator

Enter your raw dataset into the Histogram Calculator and choose the number of bins (classes) to generate a complete frequency distribution. Input your data values as a comma-separated list, set the number of bins, and get back frequency counts, relative frequencies, class boundaries, and a visual histogram chart — all in one step.

Enter numbers separated by commas, spaces, or new lines.

How many equal-width intervals to divide your data into. Leave blank to auto-calculate using Sturges' rule.

Results

Total Data Points (n)

--

Minimum Value

--

Maximum Value

--

Range

--

Bin Width

--

Mean

--

Median

--

Frequency Histogram

Results Table

Frequently Asked Questions

What is a histogram and how does it differ from a bar chart?

A histogram displays the frequency distribution of continuous numerical data by grouping values into intervals called bins. Unlike a bar chart (which shows categorical data with gaps between bars), histogram bars are adjacent, reflecting that the data is continuous. The x-axis represents measured values and the y-axis shows how many data points fall into each interval.

How many bins should I use for my histogram?

A common rule of thumb is Sturges' rule: k = 1 + 3.322 × log₁₀(n), where n is the number of data points. For small datasets (under 50), 5–7 bins often work well. For larger datasets, more bins reveal finer structure. Too few bins hide the shape of your distribution; too many create a noisy, hard-to-read chart.

What is bin width and how is it calculated?

Bin width is the size of each equal interval in the histogram. It is calculated as (maximum value − minimum value) / number of bins. A wider bin width means each bar covers a broader range of values, while a narrower bin width gives a more detailed view of the data distribution.

What is relative frequency in a histogram?

Relative frequency is the proportion of data points that fall within a given bin, expressed as a decimal or percentage. It is calculated by dividing the bin's frequency by the total number of data points (n). Relative frequencies are useful when comparing distributions of datasets with different sample sizes.

Can I use this calculator with decimal or negative numbers?

Yes. The Histogram Calculator handles any numeric data, including decimals, fractions, and negative numbers. Simply enter your values separated by commas or spaces, and the calculator will determine appropriate bin boundaries automatically based on the actual range of your data.

What is a cumulative frequency and why is it useful?

Cumulative frequency is the running total of frequencies up to and including a given bin. It tells you how many data points fall at or below the upper boundary of each interval. Cumulative frequency is used to construct ogive curves and to quickly answer questions like 'what percentage of values are below X?'

How do I interpret the shape of a histogram?

A symmetric bell-shaped histogram suggests a normal distribution. A histogram skewed to the right (long right tail) indicates most values are low with a few large outliers. Skewed left means most values are high. A bimodal histogram with two peaks suggests two distinct subgroups in your data. Uniform histograms show roughly equal frequencies across all bins.

What should I do if my data has outliers?

Outliers can heavily influence bin boundaries and make most of your data crowd into just one or two bins. Use the optional custom minimum and maximum fields to restrict the range and focus on the bulk of your data. You can also identify and review outliers separately before including them in your final analysis.

More Math Tools