Audited 05 Aug 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

Exponential Function Calculator

Evaluate f(x) = a·bˣ for any starting value a, positive growth or decay factor b and exponent x, including fractional and negative exponents.

Exponential Function Calculator

f(x)
48
The value of a × b^x for the numbers entered, in the same units as the initial value a.

Background.

Some quantities grow by adding the same amount each step; others grow by multiplying by the same factor. The second kind is exponential, and it behaves very differently. Bacteria doubling every hour, money compounding at 5% a year, the share of a radioactive sample left after each half-life: all follow f(x) = a · bˣ, where a is the starting amount and b the factor applied at every step.

The gap between adding and multiplying starts small and becomes enormous. Start at 3 and add 3 each step, and after 10 steps you have 33. Start at 3 and double each step, and after 10 steps you have 3,072. The early terms look alike; it is the repeated multiplication that runs away.

Whether the function grows or shrinks depends only on b. A factor above 1 means growth, and b − 1 is the rate per step, so b = 1.05 is 5% growth. A factor between 0 and 1 means decay: b = 0.5 halves the value each step. b = 1 leaves it unchanged. The factor must be positive, because a negative base raised to a fractional power has no real value.

The exponent need not be a whole number, or even positive. A fractional x lands between the steps — 3 · 2^0.5 is about 4.243 — and a negative x runs the process backwards, so 3 · 2⁻² = 0.75 is where the quantity stood two doublings before the start. If your model uses a continuous rate, written a · e^(kx), enter b = e^k: a continuous 5% rate is a factor of about 1.0513.

What is exponential function calculator?

An exponential function of the form f(x) = a · bˣ has a constant ratio between successive values: every time x rises by 1, the output is multiplied by b. The constant a is the value at x = 0, the graph's y-intercept, and it sets the scale and the sign of every result. The variable sits in the exponent, which is what separates it from a power function such as x², where the base varies and the exponent is fixed.

How to use this calculator.

  1. Enter Initial value a, the amount at x = 0 — a starting balance, population or dose. It may be zero or negative; a negative a mirrors the curve below the horizontal axis.
  2. Enter Growth factor b, the multiplier per step: 1 plus the rate for growth (1.08 for 8%), 1 minus the rate for decay (0.85 for a 15% loss each step). It must be greater than zero.
  3. Enter Exponent x, the number of steps from the starting point, in the unit the factor refers to — years if b is a yearly factor. Fractions and negative values from −100 to 100 are accepted.
  4. Read f(x). To work backwards and find how many steps a target value takes, use logarithms: x = log(f ÷ a) ÷ log(b).

The formula.

f(x)=a*b^x

f(x) = a × b^x. The power is applied first: b is raised to x, and the result is then scaled by a. For a whole positive x, b^x is b multiplied by itself x times; for a negative x it is 1 ÷ b^|x|; for a fractional x it is a root, so b^0.5 is √b. Because each unit of x multiplies the output by b, the growth factor dominates the answer: moving b from 2 to 3 at x = 10 turns 2^10 = 1,024 into 3^10 = 59,049. The initial value only stretches the curve and sets its sign. Results are shown to at most 10 decimal places, so a value that has decayed far enough, such as 3 × 0.5^100, displays as 0.

A worked example.

Example

Take a = 3, b = 2 and x = 4: a quantity of 3 that doubles at every step, evaluated four steps on. First the power: 2⁴ = 2 × 2 × 2 × 2 = 16. Then the scale: 3 × 16 = 48, so f(4) = 48. Written out step by step, the sequence runs 3, 6, 12, 24, 48. Changing a only rescales the answer: a = −3 gives −48. Changing b changes the direction: with b = 0.5 the same four steps halve instead of double, and 3 × 0.0625 = 0.1875. Setting x = −2 looks back in time instead, giving 3 × 2⁻² = 3 ÷ 4 = 0.75.

growth Factor2
x4
initial Value3

Frequently asked questions.

How do I turn a percentage growth rate into the growth factor b?
Write the rate as a decimal and add it to 1 for growth, or subtract it from 1 for decay. A 5% annual increase is b = 1.05 and a 20% annual loss is b = 0.8. With a = 100 and b = 1.05, ten years gives 100 × 1.05^10, about 162.89.
How long does an exponential quantity take to double?
Solve bˣ = 2, which gives x = ln 2 ÷ ln b. At 5% growth per step that is about 14.21 steps. The familiar rule of 70 — divide 70 by the percentage rate — gives 14, a close shortcut for small rates.
Why must the growth factor be positive?
A negative base flips sign at every whole step and has no real value at most fractional exponents: (−2)^0.5 would be the square root of −2. A base of zero collapses every positive power to 0 and makes negative powers undefined. Restricting b to positive values keeps the function smooth and defined for every x.
What is the difference between an exponential function and a power function?
In an exponential function the variable is the exponent, as in 2ˣ; in a power function it is the base, as in x². For large x any exponential with b above 1 eventually outgrows every power function: 2ˣ overtakes x² for good once x passes 4.
How do I use a continuous growth rate written as e^(kx)?
Convert it to a per-step factor with b = e^k and enter that. A continuous rate of 5% gives b = e^0.05, about 1.0513, slightly more than 1.05 because continuous compounding builds on itself within each step. For decay, k is negative and b falls below 1.
How do I find a and b from two measured points?
If the function passes through (x₁, y₁) and (x₂, y₂), then b = (y₂ ÷ y₁)^(1 ÷ (x₂ − x₁)) and a = y₁ ÷ b^x₁. For the points (0, 3) and (4, 48), b is the fourth root of 16, which is 2, and a is 3.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
f(x)=a*b^x
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon