Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Exponential Function Calculator

Point 1: x₁: enter a number. Prefilled example: 0.

Point 1: y₁ (positive): enter 0 or more. Prefilled example: 2.

Point 2: x₂: enter a number. Prefilled example: 3.

Point 2: y₂ (positive): enter 0 or more. Prefilled example: 16.

Evaluate the function at x =: enter a number. Prefilled example: 5.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Point 1: x₁: enter a number.
  2. Point 1: y₁ (positive): enter 0 or more.
  3. Point 2: x₂: enter a number.
  4. Point 2: y₂ (positive): enter 0 or more.
  5. Evaluate the function at x =: enter a number.
  6. 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

  1. B=(y2÷y1)1÷(x2−x1)
Symbols used in the formula
SymbolMeaning
x1Point 1: x₁
y1Point 1: y₁ (positive)
x2Point 2: x₂
y2Point 2: y₂ (positive)
BBase 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 x100%
Continuous rate k (y = a·eᵏˣ)0.6931
y at the chosen x64
  1. B=(16÷2)1÷(3−0)=2

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.

Related calculators