Exponential Function Calculator (Through Two Points)

Find the exponential function y = a·bˣ through two points, its growth or decay rate, the e-based form, doubling time or half-life, and y at any x.

Not 0. Both y-values must have the same sign.
Optional: evaluate the function at another x.

Results

Exponential function
y = 80·(1.144714243)ˣ
a (value at x = 0)
80.00
b (growth factor per unit of x)
1.14471424
Growth rate per unit of x
14.47142426% increase per unit of x
Continuous form y = a·eᵏˣ
y = 80·e^(0.135155036x)
k = ln b is the continuous growth rate.
Continuous rate k = ln b
0.13515504
Doubling time (units of x)
5.128534
ln 2 ÷ k: how far x must increase for |y| to double.
y at x = 10
309.072845
Steps
Divide the two equations: 180 ÷ 80 = b^(6 − 0), so b⁶ = 2.25 b = 2.25^(1/6) = 1.144714243 a = y₁ ÷ b^x₁ = 80 ÷ 1.144714243⁰ = 80 Check: 80 × 1.144714243⁶ = 180

How it’s calculated

An exponential function y = a·bˣ (with b > 0) multiplies y by the same factor b for every step of 1 in x. Two points (x₁, y₁) and (x₂, y₂) pin it down: dividing y₂ = a·b^x₂ by y₁ = a·b^x₁ cancels a.

b = (y₂ ÷ y₁)^(1 ÷ (x₂ − x₁)) a = y₁ ÷ b^x₁ growth rate = (b − 1) × 100%, continuous rate k = ln b doubling time = ln 2 ÷ k (or half-life = ln 2 ÷ |k| when b < 1)

Example: 80 deer were released in 2006 (x = 0) and there were 180 by 2012 (x = 6). Then b = (180 ÷ 80)^(1/6) = 2.25^(1/6) ≈ 1.1447 and a = 80, so y = 80·(1.1447)ˣ: the herd grows about 14.47% a year and doubles about every 5.13 years. At x = 10 the model gives about 309 deer.

If the two y-values have opposite signs or one is 0, no exponential function passes through both points.

Frequently asked questions

How do I find an exponential function from two points?

Divide the two equations to cancel a: y₂ ÷ y₁ = b^(x₂ − x₁). Take the (x₂ − x₁)th root to get b, then a = y₁ ÷ b^x₁. For (−2, 6) and (2, 1): b = (1/6)^(1/4) ≈ 0.6389 and a ≈ 2.4495.

How can I tell growth from decay?

If b > 1 the function grows; if 0 < b < 1 it decays. The percentage change per unit of x is (b − 1) × 100%.

What is the difference between b and the continuous rate k?

b is the factor per whole unit of x. k = ln b is the equivalent continuous rate in y = a·eᵏˣ. For b = 2, k = ln 2 ≈ 0.693.

How is this different from the exponential growth calculator?

That calculator starts from an initial amount and a percentage rate. This one finds the whole function from any two points, which need not include x = 0.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator