Exponential Function Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter two points with positive y-values to get the exponential function y = a·bˣ that passes through both.
Result
Base b
Initial value a (y at x = 0)
- Growth (+) or decay (−) rate per unit of x
- Continuous rate k (y = a·eᵏˣ)
- y at the chosen x
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Point 1: x₁: enter a number.
- Point 1: y₁ (positive): enter 0 or more.
- Point 2: x₂: enter a number.
- Point 2: y₂ (positive): enter 0 or more.
- Evaluate the function at x =: enter a number.
- Read the result: Base b; the panel also shows Initial value a (y at x = 0), Growth (+) or decay (−) rate per unit of x, Continuous rate k (y = a·eᵏˣ) and y at the chosen x.
How this calculator works
An exponential function has the form y = a·bˣ. Dividing the two equations y₂ = a·b^x₂ and y₁ = a·b^x₁ removes a: b = (y₂ ÷ y₁)^(1 ÷ (x₂ − x₁)); then a = y₁ ÷ b^x₁.
b > 1 means growth by (b − 1) × 100% per unit of x; 0 < b < 1 means decay. The same curve can be written y = a·eᵏˣ with k = ln b.
The formula
| Symbol | Meaning |
|---|---|
| Point 1: x₁ | |
| Point 1: y₁ (positive) | |
| Point 2: x₂ | |
| Point 2: y₂ (positive) | |
| Base b |
Worked example
| Point 1: x₁ | 0 |
|---|---|
| Point 1: y₁ (positive) | 2 |
| Point 2: x₂ | 3 |
| Point 2: y₂ (positive) | 16 |
| Evaluate the function at x = | 5 |
| Initial value a (y at x = 0) | 2 |
|---|---|
| Growth (+) or decay (−) rate per unit of x | 100% |
| Continuous rate k (y = a·eᵏˣ) | 0.6931 |
| y at the chosen x | 64 |
Base b 2
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
How do you find an exponential function from two points?
Divide the y-values to find b, then solve for a. Through (0, 2) and (3, 16): b³ = 8, so b = 2 and a = 2, giving y = 2·2ˣ.
Why must the y-values be positive?
a·bˣ with b > 0 never changes sign and never reaches zero, so both points must be on the same side of the x-axis; this calculator uses positive values.
What is the difference between b and k?
b is the factor per unit of x; k = ln b is the continuous rate used with e.