Learning Curve Lot Midpoint and Slope Calculator
Fits a unit learning curve to the costs or hours of your past production lots, using true lot midpoints, and projects the cost of the next lot. For cost estimators, pricing teams and government price analysts deriving a learning curve slope from a program's lot history for a proposal, a should-cost or a cost evaluation. If you already have a slope and want hours and a bid price for a follow-on lot, use the learning curve cost estimator; this page finds the slope.
Program history and the next lot
Next lot from the fitted unit curve
Unit learning curve fitted to the lots
Lot 1: units in the lot and its total cost ($ or hours)
Lot 2: units in the lot and its total cost ($ or hours)
Lot 3: units in the lot and its total cost ($ or hours)
Lot 4: units in the lot and its total cost ($ or hours)
Lot 5: units in the lot and its total cost ($ or hours)
Lot 6: units in the lot and its total cost ($ or hours)
Lot 7: units in the lot and its total cost ($ or hours)
Lot 8: units in the lot and its total cost ($ or hours)
Lot 9: units in the lot and its total cost ($ or hours)
Lot 10: units in the lot and its total cost ($ or hours)
Shortcut 1: arithmetic midpoints, one pass
Shortcut 2: trendline through cumulative averages
Checks and reconciliation
Download This Calculator
This spreadsheet is the form above: enter each lot's quantity and cost and the midpoints, slope and next-lot cost refit. Your own version could become the curve your estimators refit for every part number as each lot's actuals close, or an API that feeds proposal pricing.
Best Fit, Worse Forecast
A trendline through cumulative averages scores 97.56% adjusted R-squared against 84.22%, yet misses actual lot costs by 7.52% against 6.97% and puts the next lot $894,679 above the fitted curve.
Lot 1 Belongs at Unit 364.7, Not 553.5
On a falling curve a lot's average cost sits before its middle unit. Plotting at the arithmetic midpoint reads 85.45% instead of 86.80% and puts the next lot $559,191 low.
CEBoK's Lot Example, Reproduced
The ten-lot missile program in Hu and Smith (2012): an 86.8% slope, a 192.8 thousand first unit cost and the 1991 lot at $37,034.9 thousand, all tested as branch cases.
Frequently Asked Questions
How is a learning curve slope calculated from lot data?
A learning curve slope is calculated from lot data by regressing the natural log of each lot's average cost on the natural log of its lot midpoint, the unit number whose cost on the curve equals the lot average, then recomputing every midpoint from the fitted exponent and refitting until the exponent stops changing (the two-step method in Hu and Smith, "Accuracy Matters: Selecting a Lot-Based Cost Improvement Curve", Tecolote Research, 2012 SCEA/ISPA conference). The midpoint depends on the slope and the slope on the midpoints, so neither can be read straight off the data, and the two quick ways round that both bend the answer.
- Unit curve: cost of unit x = T1 × x^b, where T1 is the theoretical first unit cost and b = ln(slope) ÷ ln(2)
- Lot total = T1 × the sum of x^b over the lot's units, by the six-term approximation for lots over six units and an exact sum for smaller ones
- True lot midpoint = (lot total ÷ T1 ÷ lot quantity)^(1/b)
- Fit: ln(lot average) = ln(T1) + b × ln(lot midpoint), least squares, starting from the arithmetic midpoints and refitting eight times
- Next lot = T1 × the sum of x^b over the next lot's unit numbers
The defaults are the generic missile program from the ICEAA Cost Estimating Body of Knowledge (CEBoK), Module 7, as Hu and Smith reprint it: ten annual lots from 1981 to 1990, 17,807 units, and a 1991 lot of 1,430 units to estimate. Costs are entered in dollars; the paper prints thousands.
| Lot | Units | First–last unit | Lot average per unit | Arithmetic midpoint | True midpoint | Fitted lot total | Fitted vs actual (+ = curve above) |
|---|---|---|---|---|---|---|---|
| 1981 | 1,106 | 1–1,106 | $54,498 | 553.5 | 364.7 | $63,890,237 | 6.00% |
| 1982 | 1,585 | 1,107–2,691 | $47,425 | 1,899.0 | 1,829.7 | $65,861,479 | −12.38% |
| 1983 | 2,447 | 2,692–5,138 | $35,877 | 3,915.0 | 3,836.4 | $87,408,628 | −0.44% |
| 1984 | 1,517 | 5,139–6,655 | $31,030 | 5,897.0 | 5,877.3 | $49,666,647 | 5.51% |
| 1985 | 1,983 | 6,656–8,638 | $31,642 | 7,647.0 | 7,621.1 | $61,567,756 | −1.88% |
| 1986 | 1,574 | 8,639–10,212 | $26,251 | 9,425.5 | 9,412.3 | $46,806,769 | 13.28% |
| 1987 | 2,643 | 10,213–12,855 | $28,254 | 11,534.0 | 11,503.5 | $75,440,109 | 1.02% |
| 1988 | 887 | 12,856–13,742 | $33,820 | 13,299.0 | 13,296.0 | $24,580,018 | −18.06% |
| 1989 | 1,871 | 13,743–15,613 | $26,153 | 14,678.0 | 14,666.0 | $50,819,760 | 3.86% |
| 1990 | 2,194 | 15,614–17,807 | $24,662 | 16,710.5 | 16,696.0 | $58,035,679 | 7.26% |
The fitted curve has a slope of 86.80%, exponent b of −0.2043 and a theoretical first unit cost of $192,750, with a standard error of 0.1036 in log space and an adjusted R-squared of 84.22%. The 1991 lot of 1,430 units, units 17,808 to 19,237, is projected at $37,034,921, an average of $25,899 a unit, plotted at unit 18,517.0. Hu and Smith print 192.8, −0.2043, 86.8%, 0.104, 84.2% and $37,034.9 thousand at plot point 18,517.0. Their 1982 fitted lot reads $65,862 thousand against $65,861,479 here, a rounding difference; the other nine match to the thousand.
This spreadsheet is the form above, and the download keeps the helper schedule that shows every midpoint at every pass of the fit.
Why does an Excel trendline through cumulative averages give a different learning curve slope?
A power trendline through cumulative average cost against cumulative units, the usual Excel shortcut for a Wright cumulative-average curve, gives a different slope because each point repeats every lot before it: the averaging smooths away the lot-to-lot noise, so the fit statistics look far better than the data deserve, and the slope comes out flatter. Hu and Smith call this the CAC-direct curve and show that its better fit does not make it a better predictor.
On the CEBoK lots the trendline's adjusted R-squared is 97.56% against 84.22% for the lot-average fit, and its standard error is 0.0270 against 0.1036, nearly four times tighter. Yet it misses the actual lot costs by an average of 7.52%, against 6.97% for the fitted unit curve, and it projects the 1991 lot at $37,929,600, $894,679 above the fitted curve.
| Method | Slope | Adjusted R-squared | Average miss on actual lot costs | 1991 lot | Against the fitted curve |
|---|---|---|---|---|---|
| Unit curve, true midpoints | 86.80% | 84.22% | 6.97% | $37,034,921 | |
| Arithmetic midpoints, one pass | 85.45% | $36,475,730 | $559,191 lower | ||
| Cumulative average trendline | 87.36% | 97.56% | 7.52% | $37,929,600 | $894,679 higher |
The bias isn't noise. On lots generated from an exact 85% unit curve (eight lots of 3 to 30 units, 1,000 hours for the first unit), the fit recovers 85.00% and a 1,000-hour first unit, while the trendline reads 87.01% and overstates the next 40-unit lot by 5.25%. The steeper the true curve, the larger the overstatement. Compare fit statistics only between models with the same dependent variable, and judge a curve by how well it reproduces the lot totals.
What is a lot midpoint, and why not plot the lot average at the middle unit?
A lot midpoint is the unit number whose cost on the learning curve equals the lot's average cost, and on a falling curve it sits before the arithmetic middle of the lot, because the early units of a lot cost more than the late ones and pull the average toward the start. When the history starts at unit 1, plotting each lot average at (first unit + last unit) ÷ 2 places the first lot much too far to the right, which makes learning look steeper than it is.
The first CEBoK lot runs from unit 1 to unit 1,106. Its arithmetic midpoint is unit 553.5; its true midpoint on the fitted curve is unit 364.7. Later lots, far from unit 1, move by much less: 1990's midpoint shifts from 16,710.5 to 16,696.0. A single regression on arithmetic midpoints gives a slope of 85.45% and a first unit cost of $236,824, and projects the 1991 lot at $36,475,730, $559,191 below the fitted curve. Recomputing the midpoints from the fitted slope and refitting closes that gap; on these lots the exponent settles to six decimal places within four passes, and the workbook runs eight and shows the change on the last one, which must be zero.
If your history starts after unit 1, enter the units built before lot 1. Lot midpoints are cumulative unit numbers, so a lot of units 51 to 53 has a very different midpoint from a lot of units 1 to 3. Far from unit 1 the arithmetic shortcut matters much less: on an exact 85% curve whose records start at unit 51, it reads 85.02%.
Is the slope different under unit theory and cumulative average theory?
The slope fitted to lot averages is nearly the same under unit theory and cumulative average theory; what differs is the first unit cost, because a cumulative-average curve's T1 is approximately the unit curve's T1 divided by (1 + b). Hu and Smith find the two close when production runs past about 30 units and the noise is small; fitting both to the CEBoK lots they get 86.8% for each (b of −0.2043 and −0.2038), with predicted lot costs within a fraction of a percent of each other.
The fitted unit curve's first unit cost is $192,750; the same curve written in cumulative average form starts at about $242,230 (Hu and Smith's own cumulative-average fit prints 241.1 thousand). Either form gives nearly the same next-lot cost (Hu and Smith's cumulative-average fit prints $37,046.8 thousand for the 1991 lot against $37,034.9 thousand on the unit curve), so the choice matters only when someone hands you a T1 without saying which theory it belongs to. Quote the slope with the theory, and if a supplier's proposal quotes a cumulative-average T1, multiply it by (1 + b) before comparing it with a unit-theory estimate.
How do estimators and price analysts use a fitted slope to price the next lot?
Estimators and government price analysts use a fitted slope to price the next lot by summing the unit curve over the next lot's cumulative unit numbers, which continues the program's own history rather than assuming a textbook rate. On the CEBoK program the 1991 lot of units 17,808 to 19,237 comes to $37,034,921 at an average of $25,899 a unit.
Fit the curve on whatever the lots record. Labor hours give a slope that applies to hours; total cost mixes learning in labor with material and overhead that learn little, so many estimators fit hours and price material separately. The fitted lot totals show where the history departs from a single curve: the curve comes in 18.06% below the actual cost of 1988's lot of 887 units, the smallest of the ten, a hint of a production-rate effect or a disruption worth asking about before the slope goes into a proposal. To turn hours into a bid price, take the slope, the unit-theory first unit cost and the units already built (17,807 here) to the learning curve cost estimator and read its Crawford (unit) result, not the Wright one, and apply indirect rates from the government contractor indirect rate calculator.
What does this learning curve calculator not do?
This calculator fits one log-linear unit learning curve to up to ten lots of a single item; it does not model a production-rate effect, a break in production, a step change in design, or a prediction interval around the next lot. Hu and Smith extend the same regression with a lot-size or rate variable and derive prediction intervals; both are beyond this workbook.
Lots must be entered in production order with no unit counted twice, and each lot needs both a quantity and a cost; a lot with one and not the other is left out of the fit and counted in inputs to review, though its units still move the later lots' unit numbers. The cumulative average trendline needs every cost from unit 1, so it reads zero when units were built before lot 1 or a lot is left out of the fit; it is shown for comparison and never feeds the estimate. Three lots is the minimum for a standard error, and a fit where cost rises with quantity is flagged as no learning. Lot totals for lots over six units use the six-term approximation, which Hu and Smith measure at 0.11% error or less on a 70% curve. The fit is done in log space, which Hu and Smith note is biased low when transformed back to cost; they recommend their minimum-unbiased-percentage-error (MUPE) method, and no bias correction is applied here. If the change in b on the last pass is not zero, the lot data are too noisy for the midpoints to settle; look at the lots the curve misses most before trusting the slope.
Transform Your Excel Models into Web Tools
Turn your complex Excel calculations into online calculators, web forms, and APIs. No coding required — upload your spreadsheet and publish your calculations instantly.
Calculations are for estimation and planning purposes. A fitted learning curve describes past lots; verify it against current production conditions before using it in a proposal or cost evaluation. No signup required. Calculations performed securely.