LOGEST Function

Excel Functions › Statistical

All versions Statistical

The Excel LOGEST function fits an exponential curve y = b·m^x to your data and returns the array of its coefficients — the base m and the constant b. It is the exponential counterpart of LINEST.


Quick answer:
=LOGEST(B2:B7, A2:A7) returns {m, b} of the curve y = b*m^x

Syntax

=LOGEST(known_ys, [known_xs], [const], [stats])
ArgumentDescription
known_ysRequiredThe dependent y-values. All must be positive.
known_xsOptionalThe independent x-value(s). Omit to use {1,2,3,...}. Multiple columns fit a multi-variable exponential model.
constOptionalTRUE (or omitted) calculates b normally; FALSE forces b = 1.
statsOptionalTRUE returns additional regression statistics; FALSE or omitted returns only the coefficients.

How to use it

LOGEST is an array formula. For one x-variable it returns a 1×2 array {m, b} describing the fitted curve y = b·m^x — the base comes first, the constant second.

=LOGEST(B2:B7, A2:A7) // {m, b}
=INDEX(LOGEST(B2:B7,A2:A7),1,1) // pull just the base m

Internally LOGEST runs a linear regression on the logarithms of the y-values, so every y must be positive — a zero or negative value returns #NUM!. Set stats to TRUE for R² and standard errors, just like LINEST.

Coefficients vs predictions: LOGEST gives you the curve's equation; GROWTH uses that same fit to return predicted y-values for new x's. Use LOGEST to read m and b; use GROWTH to forecast.

Try it: interactive demo

Live demo

Pick a LOGEST example to see the formula and its result.

Result:

Practice workbook

📊
Download the free LOGEST practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

What does LOGEST return?
An array. For one variable it returns {m, b}, the base and constant of the exponential curve y = b·m^x. With stats set to TRUE it adds R², standard errors and other regression statistics.
How is LOGEST different from LINEST?
LINEST fits a straight line (y = mx + b); LOGEST fits an exponential curve (y = b·m^x). Use LINEST when change is constant per step, LOGEST when it grows by a constant percentage.
Why does LOGEST return #NUM!?
It takes logarithms of the y-values, so they must all be positive. A zero or negative known y-value triggers #NUM!.
What is the relationship between LOGEST and GROWTH?
LOGEST returns the coefficients m and b of the fitted curve; GROWTH applies that same curve to predict y-values for new x's. One gives the equation, the other gives forecasts.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: LINEST · GROWTH · TREND · SLOPE · INTERCEPT