Free tool
Histogram maker
A histogram groups measurements into equal-width bins and shows how many fall in each, so you can see the centre, the spread and the shape of a process. Paste your numbers below and the tool draws it and gives the mean, median and standard deviation.
Number of bins (auto)equalsk = ⌈log₂ n + 1⌉ (Sturges)
Bin widthequals(largest − smallest) ÷ k, rounded up to 1, 2, 2.5 or 5 × a power of ten
Standard deviationequals√( Σ(x − mean)² ÷ (n − 1) )
30 values read. Separate with spaces, commas or new lines; use a point for decimals. Paste a column from a spreadsheet.
Leave blank to let the tool choose
What the numbers are, with units
Pre-filled with the worked example. Your data stays in your browser.
Mean
25.009
30 values in 5 bins of width 0.02.
Median
25.01
Middle value
Standard deviation
0.0181
Sample (n − 1)
Smallest
24.97
Largest
25.05
Auto: Sturges' rule gives 6 bins for 30 values; the width is rounded up to 0.02. Bins include their lower edge.
| Bin | Count | Share |
|---|---|---|
| 24.96 to under 24.98 | 1 | 3.3% |
| 24.98 to under 25 | 5 | 16.7% |
| 25 to under 25.02 | 13 | 43.3% |
| 25.02 to under 25.04 | 9 | 30% |
| 25.04 to under 25.06 | 2 | 6.7% |
Next step
Want to keep problem solving in one place?
Bring this result to a 45-minute demo and we will show where it fits in LeanSuite's Quality Improvement.
How to use it
From a column of readings to a chart
Paste the readings. One measured characteristic, such as a diameter, a fill weight or a cycle time, with at least 20 or 30 values if you can. Separate them with spaces, commas or new lines, and use a point for decimals. Our histogram template has a sheet to collect them on.
Leave the bin width blank to start. Then set a width of your own, such as the resolution of your gauge, and see if the shape holds.
Read the shape. One hump near the target is what you hope for. Two humps suggest two sources mixed together; a cliff on one side often means sorting or a limit. If it is stable and bell-shaped, Cp and Cpk compare it with your specification limits.
Worked example
Illustrative numbers, not a benchmarkThirty shaft diameters in millimetres, measured in order from one machine.
- 1n = 30, so Sturges gives k = ⌈log₂ 30 + 1⌉ = 6 bins.
- 2Range = 25.05 − 24.97 = 0.08, and 0.08 ÷ 6 = 0.013, rounded up to a width of 0.02.
- 3The first edge is 24.96, so the bins are 24.96 to 24.98, 24.98 to 25.00, and so on up to 25.04 to 25.06.
- 4Counts per bin: 1, 5, 13, 9 and 2, which add up to 30.
- 5Mean = 25.009 mm, median = 25.01 mm, sample standard deviation = 0.018 mm.
Embed this tool
Teaching this, or writing about it? Paste this code into your site, course page or intranet and the tool works right there. It is free, with no sign-up.
<iframe src="https://www.theleansuite.com/tools/histogram-maker/embed" title="Histogram maker by LeanSuite" width="100%" height="2300" style="border:0;max-width:1000px" loading="lazy" allow="clipboard-write"></iframe>
<p style="font:13px/1.4 sans-serif"><a href="https://www.theleansuite.com/tools/histogram-maker">Histogram maker</a> by LeanSuite</p>How LeanSuite helps
LeanSuite's Quality Improvement tools log quality issues from the floor, trace each one to its root cause and follow the corrective action through to closure, with custom KPIs that show where defects happen.
See Quality ImprovementRead more
- Free template: Histogram template
- Free template: Process capability (Cpk) study sheet
- Histogram in the lean glossary
- Seven basic quality tools in the lean glossary
- Lean Six Sigma Tools: 13 Common Tools and When to Use Them
- Box plot maker, to compare groups side by side
- Pareto chart maker, for counts of categories
- Histogram guide: how to read the shape of your data
- Control chart guide: the same data in time order
FAQ
Histogram maker: common questions
A histogram is a bar chart of measurements grouped into equal-width ranges called bins. The height of each bar is how many measurements fall in that range. It shows where a process is centred, how wide it spreads and whether the shape is skewed or has two peaks, which can mean two machines or lots are mixed together.
There is no single right number. A common starting point is Sturges' rule, the number of bins k = log2(n) + 1 rounded up, which gives about 6 bins for 30 values and 8 for 100. Too few bins hide the shape and too many make it ragged. Try a few widths; if the story changes a lot between them, you have too little data.
A bar chart compares separate categories, such as defect types, so the bars can be in any order and have gaps. A histogram shows one measured variable cut into consecutive ranges, so the bars follow the number line in order and touch. If your data are categories with counts, use a Pareto chart instead.
Select the column of measurements, choose Insert, then the Histogram chart under the statistic charts (Excel 2016 and later), and set the bin width under Format Axis. This tool does the same from pasted numbers, chooses the bins for you if you leave the width blank, and reports the mean, median and standard deviation alongside.
It shows the shape, not the verdict. To judge capability you compare the spread with the specification limits, which the process capability calculator does with Cp and Cpk. A histogram is still the first thing to draw, because the capability indexes assume a single, roughly bell-shaped, stable distribution and the histogram shows whether that is true.
More free lean tools
All tools- OEE calculatorOverall equipment effectiveness from shift time, downtime, ideal cycle time and part counts.
- Downtime cost calculatorWhat an hour, an event and a year of unplanned downtime cost, from lost output, idle labour, scrap and overtime.
- SMED changeover calculatorTime saved by moving changeover steps from internal to external, capacity freed per week and the smaller batch it allows.
- Takt time calculatorThe pace a line must hit to meet customer demand, from shift time, breaks and daily demand.
- Cycle time calculatorCycle time against takt, units per hour, capacity per shift and the gap to daily demand.
- Line balancing calculatorLine efficiency, balance delay and the minimum number of stations from station times and takt.
- Bottleneck calculatorThe step that limits your line, from each step's cycle time, machines and uptime, with daily capacity and the gap to demand.
- First pass yield (FPY) calculatorFirst pass yield at each step and rolled throughput yield (RTY) across the whole process.
- Cost of poor quality (COPQ) calculatorTotal COPQ and cost of quality, and each as a share of revenue, from the four quality cost categories.
- Process capability (Cp, Cpk) calculatorCp and Cpk against your specification limits, plus Pp and Ppk from pasted measurements, with a distribution chart.
- DPMO and sigma level calculatorDPMO, defects per unit, yield and sigma level from the defects found, units checked and opportunities per unit.
- MTBF and MTTR calculatorMean time between failures, mean time to repair and availability from operating time, failures and repair time.
- Lead time calculatorManufacturing lead time from WIP and throughput (Little's Law), and the share of it that adds value.
- Throughput time calculatorThroughput time from process, inspection, move and wait time, the share of it that adds value, and units per hour.
- Kaizen savings calculatorYearly savings, payback in months and first-year ROI of an improvement, from time saved, scrap avoided and its costs.
- TEEP calculatorTotal effective equipment performance: OEE multiplied by how much of all calendar time you plan to run.
- Overall labor effectiveness (OLE) calculatorHow well paid labor hours turn into good output: availability, performance and quality of the crew.
- Inventory turnover and days on hand calculatorHow many times stock turns over in a period and how many days of it you hold, from COGS and average inventory.
- Safety stock calculatorSafety stock and reorder point from the service level you want, average demand and lead time, and how much each varies.
- Scrap rate calculatorScrap rate, the cost of scrap per period and per year, and what reaching a target rate would save.
- TRIR and DART rate calculatorOSHA recordable and DART incident rates from your 300A case counts and hours, and what one more case does to them.
- NIOSH lifting equation calculatorRecommended weight limit and lifting index for a two-handed lift, with every multiplier shown so you can see what to redesign.
- Time study sample size calculatorHow many cycles of an element to time, from your first readings, with the t formula, the ILO formula and the range method.
- Maintenance strategy selectorAnswer the RCM questions for one failure mode and get the maintenance strategy, the reasoning and the check or test interval.
- Noise dose and TWA calculatorDose and 8-hour TWA for a shift of noise levels under OSHA and NIOSH, which limits are reached and how much loud time to cut.
- Repair or replace calculatorEquivalent annual cost of keeping and repairing an old machine against buying a new one, with each one's economic life and the break-even figures.
- Compressed air leak cost calculatorAir lost, kW and cost a year for each tagged leak from its size and the pressure, ranked so the biggest gets fixed first.
- Machine hour rate calculatorWhat one productive hour of a machine costs, with and without the operator, the cost per part and how utilisation moves the rate.
- Acceptance sampling calculatorRead the OC curve and the real risks of a sampling plan, find the plan for your AQL and LTPD, or size a zero-defect test.
- Shift schedule plannerTen shift patterns on real dates: calendar for each crew, hours a week, weekends off, coverage and the weeks over 40 hours.
- Pareto chart makerPaste categories and counts: sorted bars, cumulative percentage line and the vital few at the 80% line, as a PNG or SVG.
- Box plot makerPaste one or more groups of numbers: box plots with quartiles, IQR, whiskers and outliers by the 1.5 IQR rule, as a PNG or SVG.
- Fishbone diagram makerName the problem, list causes under the 6M bones, and download the Ishikawa diagram as a PNG or SVG.
- 5 Whys canvasWrite the problem, answer up to five whys, state the root cause and countermeasure, then print the one-page canvas.
- Lean maturity self-assessmentScore 24 statements across eight dimensions and get a result band for each, an overall band and where to start.
- Lean method navigatorSix questions about one problem, then the lean method to start with, the two that follow, why each fits, five steps for Monday and what it will not solve.
- Manufacturing ROI calculatorAnswer a few questions about your shop floor, shifts and downtime to estimate your potential ROI with LeanSuite.

