LOGEST function
Fits an exponential curve y = b·m^x to your data and returns the growth factor m and the starting value b.
Available in All versions of Excel, including Microsoft 365 and Excel for the web (spills automatically in Microsoft 365 and Excel 2021+)
In every Excel versionWorks in Google Sheets
Syntax
LOGEST(known_y's, [known_x's], [const], [stats])| Argument | What it means | |
|---|---|---|
known_y's | Required | The observed values; all must be greater than 0. |
known_x's | Optional | The matching x-values. Defaults to 1, 2, 3, ... |
const | Optional | TRUE or omitted: estimate b. FALSE: force b = 1. |
stats | Optional | TRUE: also return standard errors, R² and other statistics (calculated on the log scale). |
Returns: An array {m, b} (with several x columns {mₙ, …, m₁, b}), plus four rows of statistics if requested.
How LOGEST works
Where LINEST fits a straight line, LOGEST fits a curve that grows (or shrinks) by a constant percentage per step: y = b·m^x. The growth factor m is the useful number: an m of 1.25 means +25% per period, an m of 0.9 means -10% per period. b is the value the curve would have at x = 0.
Excel fits the curve by taking the natural log of every y and running ordinary linear regression on those logs, so all y-values must be positive. The statistics (when stats is TRUE) describe that log-scale regression, so R² measures how straight the logged data is. GROWTH uses exactly the same fit to produce forecasts directly.
Examples
1Growth factor and starting value
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Month | Subscribers | |||
| 2 | 1 | 120 | 1.2460 | 96.2693 | |
| 3 | 2 | 150 | |||
| 4 | 3 | 185 | |||
| 5 | 4 | 232 | |||
| 6 | 5 | 290 | |||
| 7 | 6 | 360 |
Spills into D2:E2: m = 1.245976 and b = 96.269307 (shown to 4 decimals). The subscriber base grows about 24.6% per month, and the curve is y = 96.27 × 1.2460^month.
2Monthly growth rate as a percentage
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Month | Subscribers | ||
| 2 | 1 | 120 | 24.60% | |
| 3 | 2 | 150 | ||
| 4 | 3 | 185 | ||
| 5 | 4 | 232 | ||
| 6 | 5 | 290 | ||
| 7 | 6 | 360 |
Result: 24.60%
INDEX picks m, then subtracting 1 gives the growth rate: 24.60% per month (formatted as a percentage).
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | A value in known_y's is 0 or negative. | Exponential fits need positive data. |
#REF! | The y and x ranges have different sizes. | Use matching ranges. |
#VALUE! | A cell is empty or contains text. | Remove blanks from the input ranges. |
Tips
=INDEX(LOGEST(y,x),1)^12-1converts a monthly factor into an annual growth rate.- Compare LOGEST's R² (stats row 3) with LINEST's to see whether exponential or linear growth fits better, keeping in mind they are measured on different scales.
Google Sheets
LOGEST also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
LOGEST in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Czech | LOGLINREGRESE |
| Danish | LOGREGR |
| Dutch | LOGSCH |
| Finnish | LOGREGR |
| French | LOGREG |
| German | RKP |
| Hungarian | LOG.ILL |
| Italian | REGR.LOG |
| Norwegian (Bokmål) | KURVE |
| Polish | REGEXPP |
| Portuguese (Brazil) | PROJ.LOG |
| Portuguese (Portugal) | PROJ.LOG |
| Russian | ЛГРФПРИБЛ |
| Spanish | ESTIMACION.LOGARITMICA |
| Swedish | EXPREGR |
| Turkish | LOT |