Calculadora de Largura de Classe

Largura = (max − min) / k.
Created by
Renato Passos, Eng. de Software
Reviewed by
Renato Passos, Eng. de Software

Last updated: Apr 18, 2026

Largura
9,0000

Formula

w = (max − min) / k

About this calculator

The Class Width Calculator is a statistical tool that determines the interval of each class in a frequency distribution. It calculates the ideal width by dividing the total range of the data (difference between the maximum and minimum values) by the desired number of classes. This value is essential for building histograms and frequency tables, ensuring data is grouped uniformly and representatively.

How it works: simply enter the maximum value, minimum value, and number of classes (k). The calculator applies the formula w = (max − min) / k, where w is the class width. The result shows the interval each class should have. For example, with data from 10 to 100 and 5 classes, the width will be 18, resulting in classes like 10-28, 28-46, etc. This method is widely used in exploratory data analysis.

When to use? This calculator is useful for students and professionals who need to organize large datasets, such as in market research, academic performance analysis, or demographic studies. It helps visualize data distribution, identify patterns, and make evidence-based decisions. Use it whenever you need to create histograms or summarize continuous data.

Cautions: Ensure the number of classes (k) is appropriate for the sample size. Rules like Sturges' (k = 1 + 3.322 * log10(n)) can help. Avoid classes with zero or negative width; check that max > min. The calculated width is a theoretical value; in practice, it can be rounded for easier interpretation.

Frequently asked questions

What is class width in statistics?

It is the size of the interval for each class in a frequency distribution, calculated as (max − min) / k.

How to choose the number of classes (k)?

Use rules like Sturges' (k = 1 + 3.322 * log10(n)) or the square root of the data count. Avoid too many or too few classes.

Can I use decimal values for width?

Yes, the width can be decimal. Round up or down as needed for data interpretation.

What if the maximum equals the minimum?

Then the range is zero and the width will be zero. This means all data are identical; use only one class.

Is this calculator for grouped data?

Yes, it is ideal for determining intervals before grouping data into a frequency table.

Other Estatistica Descritiva calculators