🌐
Metabase
metabase.com › glossary › bin
What is a bin?
A single range of continuous values used to group values in a chart.
🌐
CK-12 Foundation
ck12.org › all subjects › math grade 6 › frequency tables and histograms › what are bins in a histogram?
Flexi answers - What are bins in a histogram? | CK-12 Foundation
September 11, 2025 - Bins in a histogram are intervals that represent the range of data. They group data points into specific ranges, allowing us to see the distribution of the data. Each bin has a height that shows the number of data points (frequency) within that range. The choice of bin size can affect the ...
Discussions

How important is histogram "binning"? How do you decide on the number/width of bins to use in a histogram?
I remember trying to find this. It’s a pain. There’s no one right way. It typically comes down to doing it by eye. Ultimately you want it small enough to see detail where there are statistics, and large enough to only see a little statistical fluctuation in your lowest populated regions. If the scarcest parts of the range are at the extremes of your range, consider using under and overflow bins. This allows you to use narrower bins in the rest of the range. In an analysis I was working on the statistics dropped off exponentially at the high end of the distribution. In that case we used bins of varying width, increasing exponentially towards the high range. (Something that’s a serious bugger to do in ROOT. TH1 support variable bin widths but the plots are actually bar charts, not histograms. Ie the content is represented by height, not area. So the end result needs a lot of work to accurately represent the data. But that’s a rant for another day) Edit: I should also say, what’s typically done to save time, assuming you’re using ROOT. When you initially run through the data, create the plot with a very fine binning. This is the time consuming code and you want to run it as few times as possible. Then at a later point you can rebin the histogram into larger bins. This greatly speeds up the trial and error process. More on reddit.com
🌐 r/ParticlePhysics
10
6
March 15, 2018
terminology - How to describe a bin in a histogram? - Cross Validated
What is common in the literature to refer to a certain bin in a histogram? For example, say I have a histogram with 4 bins. The first bin has all values between 1 to 2, second bin 2 to 3, and so ... More on stats.stackexchange.com
🌐 stats.stackexchange.com
December 5, 2014
[Q] Should I mention bin size when showing an histogram?
Hello. It depends on the document, I suppose, but you don't typically mention bin size. Make sure that you clearly label the axis, though, so that the reader has all the information to interpret your histogram properly. If you are asked to submit the code you used to produce the histogram (as required by some journals), the bin size will be easy to discern. Good luck. More on reddit.com
🌐 r/statistics
5
6
May 31, 2024
Manually set Bin Range for Histogram
u/12739101 - Your post was submitted successfully. Once your problem is solved, reply to the answer(s) saying Solution Verified to close the thread. Follow the submission rules -- particularly 1 and 2. To fix the body, click edit. To fix your title, delete and re-post. Include your Excel version and all other relevant information Failing to follow these steps may result in your post being removed without warning. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/excel
6
3
July 27, 2023
🌐
CK-12 Foundation
ck12.org › all subjects › math grade 6 › frequency tables and histograms › what is a bin in a histogram?
Flexi answers - What is a bin in a histogram? | CK-12 Foundation
September 11, 2025 - In a histogram, a bin is a range of values that data is grouped into. Each bin represents an interval, and the height of the bar for each bin shows the frequency of data points within that range. Bins help visualize the distribution of data.
🌐
Statistics How To
statisticshowto.com › home › choose bin sizes for histograms in easy steps + sturge’s rule
Choose Bin Sizes for Histograms in Easy Steps + Sturge's Rule - Statistics How To
March 29, 2024 - In statistics, data is usually sorted in one way or another. You might sort the data into classes, categories, by range or placement on the number line. A bin—sometimes called a class interval—is a way of sorting data in a histogram.
🌐
Quora
quora.com › What-are-bins-in-histograms
What are bins in histograms? - Quora
Answer (1 of 2): In a histogram, the total range of data set (i.e from minimum value to maximum value) is divided into 8 to 15 equal parts. These equal parts are known as bins or class intervals. Each and every observation (or value) in the data set is placed in the appropriate bin. The number o...
🌐
CK-12 Foundation
ck12.org › all subjects › math grade 6 › frequency tables and histograms › what is a histogram bin?
Flexi answers - What is a histogram bin? | CK-12 Foundation
September 11, 2025 - A histogram bin is a range of values that data is grouped into for the purpose of creating a histogram. Each bin represents an interval, and the height of the bar in the histogram shows how many data points fall within that interval. Bins help in visualizing the distribution of data.
🌐
Medium
medium.com › @jennycoreholt › histograms-and-bin-their-sizes-a-beginners-guide-for-data-analysts-91d9b0c7ec01
Histograms and their Bin Sizes: A Beginner’s Guide for Data Analysts | by Jenny Core-Holt | Medium
August 8, 2025 - A histogram is a type of chart that shows the distribution of numerical data. It splits data into intervals (called bins) and counts how many values fall into each.
Find elsewhere
🌐
Reddit
reddit.com › r/particlephysics › how important is histogram "binning"? how do you decide on the number/width of bins to use in a histogram?
r/ParticlePhysics on Reddit: How important is histogram "binning"? How do you decide on the number/width of bins to use in a histogram?
March 15, 2018 -

For a project in HEP, I have some histograms of kinematic variables (e.g. # of events vs some particle's pT) for which I have been asked to "determine the binning" that should be used.

Is this just as simple as just tweaking the number and width of the bins by trial and error to see what looks prettiest, or is there a proper/rigorous way that a physicist should do this? Any advice is greatly appreciated!

Top answer
1 of 4
4
I remember trying to find this. It’s a pain. There’s no one right way. It typically comes down to doing it by eye. Ultimately you want it small enough to see detail where there are statistics, and large enough to only see a little statistical fluctuation in your lowest populated regions. If the scarcest parts of the range are at the extremes of your range, consider using under and overflow bins. This allows you to use narrower bins in the rest of the range. In an analysis I was working on the statistics dropped off exponentially at the high end of the distribution. In that case we used bins of varying width, increasing exponentially towards the high range. (Something that’s a serious bugger to do in ROOT. TH1 support variable bin widths but the plots are actually bar charts, not histograms. Ie the content is represented by height, not area. So the end result needs a lot of work to accurately represent the data. But that’s a rant for another day) Edit: I should also say, what’s typically done to save time, assuming you’re using ROOT. When you initially run through the data, create the plot with a very fine binning. This is the time consuming code and you want to run it as few times as possible. Then at a later point you can rebin the histogram into larger bins. This greatly speeds up the trial and error process.
2 of 4
2
If you do it so that the relative error of the number of events in each bin is below some threshold this generally works quite well. So sqrt(n) /n < 5. This means that your bins will be large in the tail and small in the bulk. Make sure that the bin size in the bulk isn't smaller than the resolution of the detector since you'll have lots of events in that region.
🌐
Math.net
math.net › home › primary math › data and graphs › histogram
Histogram
A histogram is a type of chart used to represent the frequency distribution of a set of data. The width of the bars in a histogram represent what is referred to as a "bin" or "bucket," while the height tells us how many values in the data set fall within each respective bin.
🌐
GeeksforGeeks
geeksforgeeks.org › python › bin-size-in-matplotlib-histogram
Bin Size in Matplotlib Histogram - GeeksforGeeks
July 23, 2025 - Bin size in a Matplotlib histogram controls how data is grouped into bins, each bin covers a value range and its height shows the count of data points in that range. Smaller bin sizes give more detailed distributions with many bins, while larger ...
🌐
Wikipedia
en.wikipedia.org › wiki › Histogram
Histogram - Wikipedia
2 weeks ago - A histogram is a visual representation of the distribution of quantitative data. To construct a histogram, the first step is to "bin" (or "bucket") the range of values— divide the entire range of values into a series of intervals—and then count how many values fall into each interval.
🌐
APXML
apxml.com › courses › data-visualization-matplotlib-seaborn › chapter-3-basic-matplotlib-plot-types › matplotlib-histogram-bins
Understanding Histogram Bins in Matplotlib
They display the frequency (or ... to create these visualizations. The bars in a histogram represent these frequencies, with each bar corresponding to a specific range of values. These ranges are called bins....
🌐
Atlassian
atlassian.com › data › charts › histogram complete guide
Histograms Unveiled: Analyzing Numeric Distributions | Atlassian
January 30, 2026 - A histogram is a chart that plots the distribution of a numeric variable’s values as a series of bars. Each bar typically covers a range of numeric values called a bin or class; a bar’s height indicates the frequency of data points with ...
🌐
Minitab
support.minitab.com › en-us › minitab › help-and-how-to › graphs › general-graph-options › display-options › binning
Binning - Minitab - Support
Bins are equally spaced intervals used to sort sample data for graphing. In Minitab, histograms and dotplots plot the number of values that are in each bin.
Top answer
1 of 2
9

This is partly a question of statistics terminology and partly one of English usage. (Clearly, some points may be irrelevant or need changing for anyone interested in this question but for some language other than English.)

Let's focus first on measured data.

To be completely clear in describing your bin to me you have to tell me somehow (1) where it starts, (2) how wide it is, and (3) what happens at bin boundaries. That's a matter of statistics. Sometimes (2) or even (3) are obvious from context, e.g. (2) may be obvious by looking at the graph.

In English, "between" is best paired with "and" and "from" with "to", but a problem with both usages is that they leave ambiguous what happens at the boundaries. So, "between 2 and 3", "between 3 and 4", etc. or "from 2 to 3", "from 3 to 4", etc., raise the question of what happens if data are exactly 3.

For completeness, I will stress that units of measurement when used (kg, m, USD/year, etc.) should always be mentioned prominently at least once.

While I am focusing on English usage, I'll note that usages such as "between 2-3" and "from 2-3", although very common, are widely disapproved by usage pundits and recommended against by many style guides as poor style, but you will also encounter views that such an attitude is anywhere between conservative and reactionary. (On this issue, I line up with the conservatives.) That is, it is considered poor style to use a hyphen or dash as replacement for the second word, namely "and" or "to". The argument appears to be one of symmetry, that words that deserve to be paired should indeed be paired.

If you tell me that a bin is for values $2 \le x < 3$ or for $[2, 3)$ you have told me everything I need to know. So, if you need to refer to a particular bin, using a little mathematics can be simpler and better than ambiguous wording. Naturally for $x$ feel free to substitute a word description of the variable. Or use that word description elsewhere and use some example-based explanation as this.

Bin width is 1 and lower limits are inclusive, so (e.g.) the bin for 2-3 includes values reported as 2.0.

Things are usually and naturally simpler with discrete (e.g.) counted data. It is still best to report that bins are (e.g.) 0-3, 4-7, 8-11, etc. and never as 0-4, 4-8, 8-12, etc. (It may surprise you how common the latter practice is.)

However, much depends on your readership. Perhaps your readership are not comfortable with notation for inequalities, in which case you still have the problem of explaining what happens at bin boundaries, although only context and audience can determine how far that matters. I've found that you can't presume familiarity with use of $[, )$ notation unless you are addressing people with good mathematical backgrounds. Even statistics users forget much of what school or college mathematics they once knew if they don't use it routinely.

I wouldn't presume that all bins are labelled with their numeric limits on the histogram. If there are tens or even hundreds of bins that would usually be busy, impracticable or both. Conversely, it is difficult to imagine discussing an individual bin unless it is identifiable.

EDIT: Thanks to other contributors for reminding me of interval notation.

2 of 2
8

I agree with Nick's post - it's important advice for describing what a bin contains.

However, for this answer, I'll assume we're in a context where the content of the bins was already clear.

if I was simply referring to a particular bin**, I'd most likely refer to a bin by its ordinal position (first bin, second bin, ...). If the end to start counting at were not specified (like in "third bin from the right"), such counting would presumably follow the cultural convention of counting from the left (at least it seems to be conventional among people who write left-to-right).

** and there were not a lot of bins (likely no more than say ten bins).

So for example, I might say something like "the third bin has many more observations than the usual uniform model would predict".

If there were many bins, I might either refer to it by one of its limits ("the bin starting from 25") or by a roundish number somewhere near its middle ("the bin containing 40"), or by some obvious feature ("the bin immediately to the right of the mode").

If there's any possibility of ambiguity, though, it's best to fall back to the complete description (e.g. "the bin on the interval $[25,27)$").

🌐
MathWorks
mathworks.com › matlab › graphics › 2-d and 3-d plots › data distribution plots
Histogram - Histogram plot - MATLAB
Histograms are a type of bar plot that group data into bins. After you create a Histogram object, you can modify aspects of the histogram by changing its property values. This is particularly useful for quickly modifying the properties of the bins or changing the display.
🌐
ScienceInsights
scienceinsights.org › what-is-a-bin-in-a-histogram-and-how-do-you-choose-one
What Is a Bin in a Histogram and How Do You Choose One? - ScienceInsights
March 21, 2026 - A bin in a histogram is a range of values that groups your data into intervals. Each bin becomes one bar on the chart: the width of the bar shows the range of values it covers, and the height shows how many data points fall within that range.
🌐
Fiveable
fiveable.me › all key terms › intro to statistics › bin
Bin Definition for Intro to Statistics | Fiveable
A bin is a defined interval or range of values used to organize and group data in statistical visualizations such as histograms, frequency polygons, and time series graphs.
🌐
Khan Academy
khanacademy.org › math › statistics-probability › displaying-describing-data › quantitative-data-graphs › a › histograms-review
Histograms review (article)
Can you measure it with numbers? Then it's quantitative data! This unit covers some basic methods for graphing distributions of quantitative data like dot plots, histograms, and stem and leaf plots. We'll also explore how to use those displays to compare the features of different distributions.