Build the equation in the display at the top: click the Var, Num and Op buttons, with ^ for the exponent and e for the natural base, or type on the keyboard; wrap a multi-term exponent in brackets. Learn more about building equations
Clear empties the display, the curved arrow undoes the last edit and the ⌫ button deletes the character before the caret. Learn more about editing
Click Solve, or press Enter in the display, once the equation is complete; an expression without an equals sign, or with a right side of zero or below, is refused. Learn more about solving
The right panel lists the steps from isolating the exponential to matching bases or taking a logarithm, and the answer card gives the value marked Exact or Approximate; the box under the solver explains the method. Learn more about the solution
A right side that is a whole power of the base gives an exact answer; any other gives a logarithm, marked Approximate. Learn more about the two methods
x
Solve equations with variables in exponents
Enter equation...
Var
Num
Op
Select an equation type or enter your own equation, then click Solve to see the step-by-step solution.
How the solver works
The solver reads one equation in x, y or n with the variable in an exponent, such as acdotbf(x)=c with a positive base $b eq 1.Itisolatestheexponentialterm,thentriestowritecasawholepowerofbandequatetheexponents;whenthatfailsittakesthenaturallogarithmofbothsidesanddividesbyln b$. A linear exponent leaves a linear equation to finish. Answers from base matching are Exact, answers from logarithms Approximate, and a right side of zero or below has no solution. Learn more about exponential equations
The solver shows an equation display at the top with a blinking yellow caret marking the cursor position. Click anywhere in the display to place the cursor, or use arrow keys, Home, and End for keyboard navigation. Type directly or use the button panel below.
Three quick experiments:
• Type 2x=32 and press Enter — the right panel recognizes 32 as 25, matches bases, and returns the exact answer x=5. • Click the "Natural Base" example template — an equation ex=c loads into the display. The solver applies the natural log to give x=lnc. • Try 32x+1=81 to see the base-matching pipeline with a linear exponent: the solver finds 81=34, equates 2x+1=4, and solves to x=3/2.
The Solve button is disabled until you enter something. Pressing Enter on the display is equivalent to clicking Solve. The special row offers e for the natural base. An expression without an equals sign is refused with "Input must be an equation (use = sign)", a right side of zero or below with "Exponential equations cannot equal zero or negative numbers", and exponentials on both sides are not yet supported. 2x=5 has no base match and gives x=2.321928 by logarithms. What makes an equation exponential is explained in what is an exponential equation.
Building Equations with Buttons and Keyboard
DemoA bracketed exponent, undo, delete, Solve
Step 0 of 4
The button panel groups inputs by type. All inputs can be made either by clicking or typing on the keyboard.
• Variable row — x, y, n. The solver picks up whichever variable appears in the exponent. • Number row — digits 0 through 9 and the decimal point. • Operator row — caret operator (rendered as xn on the button), multiplication, division, plus, minus, equals. • Special row — the constant e for natural-base equations, and bracket buttons.
To enter bx, type the base, the caret, then the exponent. The display renders the exponent as a proper superscript. For multi-term exponents like 2x+1, wrap them in parentheses: 3^(2x+1).
Keyboard shortcuts: type letters and digits directly, use star or slash for multiplication and division, type a lowercase e for Euler's number (the tokenizer distinguishes it from a variable), and press Enter to solve. The ⌫ button deletes the character before the caret. Why the base must be positive and not 1 is explained in what is an exponential equation. Ctrl+Z undoes up to fifty edits back; Backspace deletes the character before the cursor; Delete removes the one after it.
Try an Example — Eight Form Templates
DemoOpen the templates, load two forms
Step 0 of 4
Click the "Try an Example" header to expand the template panel. Each card generates a random equation of that form. Clicking again produces a new random version.
• Simple — bx=c. Basic form where c is often a power of b. • With Coefficient — a⋅bx=c. Requires dividing both sides by a first. • Linear Exponent — bmx+n=c. Combines base-matching with a linear equation in the exponent. • Same Base — bf(x)=bn. Same base on both sides; equate the exponents directly. • Convertible — ax=b where a and b are powers of the same number. Demonstrates the power-of-power rule. • With Constant — bx+c=d. Requires isolating the exponential first. • Natural Base — ex=c. Applies the natural log directly. • Natural Linear — emx+n=c. Same as Linear Exponent but with base e.
Roughly 80 percent of generated equations produce clean integer or rational solutions via base matching; the rest exercise the logarithm fallback. Loading a template clears the previous solution; click Solve to work the new equation. The two methods applied to every template are compared in base matching vs logarithms.
Reading the Step-by-Step Solution
DemoA coefficient and a base match, then a natural log
Step 0 of 3
The solution panel shows each algebraic move as a labeled step. The exact step sequence depends on whether base matching or logarithms are used.
• Rearrange Equation — if the exponential is on the right side, the solver swaps sides for clarity. • Evaluate Constant — reduces the non-exponential side to a single number if arithmetic is involved. • Isolate Exponential Term — divides by coefficients or subtracts additive constants until the exponential sits alone on one side. • Recognize Perfect Power (when applicable) — if the right side equals bk for integer k, the solver detects this and prepares to match bases. • Match Bases — when both sides share a base, equate the exponents to get a polynomial equation in x. • Apply Logarithm — when no perfect-power match exists, the solver takes the natural log or log base b of both sides. • Simplify — uses the identity logb(bx)=x to bring the variable out of the exponent. • Calculate — substitutes the logarithm value and reports the numerical answer. • Solve for Variable — for linear exponents, solves the resulting linear equation.
Solutions from base matching are flagged as exact; solutions from logarithms are flagged as approximate. 5⋅2x=40 is divided by 5 first, 8=23 is recognised and x=3 is Exact; ex=20 takes the natural log and gives x=2.995732, Approximate. The box under the solver, How the solver works, summarises the method in a few lines and links to the theory below. The three stages are set out in the solving process explained.
Base Matching vs Logarithms
Two distinct techniques solve exponential equations. The solver tries the cleaner method first and falls back to the more general one when needed.
• Base matching. Works when both sides can be written as powers of the same base. The principle: if bp=bq for any positive base b=1, then p=q. The exponential function is one-to-one, so equal outputs imply equal inputs.
Example: 4x=64. Recognize 64=43 (or rewrite both sides as 22x=26), then x=3. Exact integer answer.
When it works: c is exactly an integer power of the base b. The solver enumerates powers b1,b2,… up to c and reports a match if found.
• Logarithms. Works in every case. The principle: applying logb to both sides converts bx to x via the identity logb(bx)=x. The most common choice is the natural log (ln, with base e), because calculators evaluate it directly.
Example: 2x=5. Take ln of both sides: xln2=ln5, so x=ln5/ln2≈2.32. Approximate answer.
Logarithms always work but rarely produce clean integer answers. They are essential whenever c is not a perfect power of the base.
For linear exponents bmx+n=c, apply the log to both sides, giving (mx+n)lnb=lnc. Then solve the linear equation in x.
For deeper coverage see exponential and logarithmic functions and change of base formula.
An exponential equation contains the variable in an exponent. The defining form for a single exponential term is:
a⋅bf(x)=c
where b>0 and b=1 is the base, a is a constant coefficient, f(x) is the exponent (typically linear in x), and c is a constant. Two common special cases:
• Basic form — bx=c with a=1 and f(x)=x. • Natural exponential — ex=c where the base is Euler's number e≈2.71828.
Domain and range. The function bx is defined for every real x, but its range is the positive reals (0,∞). This means bx=c has a solution only when c>0. Setting bx equal to zero or a negative number gives no real solution.
Inverse relationship. The exponential function with base b has the logarithm with base b as its inverse: blogbx=x and logb(bx)=x. This pairing is what makes logarithms the universal tool for solving exponential equations.
Exponential equations appear in compound interest, population growth, radioactive decay, cooling laws, pH calculations, and any model where a quantity changes by a constant multiplicative factor over equal time intervals.
For deeper coverage see exponential functions, the number e, and growth and decay models.
Three stages solve any exponential equation. The first stage is mandatory; the second and third are alternatives.
• Stage 1: Isolate the exponential term. Move every non-exponential term to the other side. If the equation contains 2⋅3x+5=23, subtract 5 to get 2⋅3x=18, then divide by 2 to get 3x=9.
• Stage 2a: Try base matching. If the isolated right side is an integer power of the base, equate the exponents directly. 3x=9 becomes 3x=32, hence x=2. This produces an exact integer (or rational) answer.
• Stage 2b (fallback): Apply a logarithm. When no clean base match exists, take the natural log of both sides:
ln(bf(x))=lnc
Using ln(bu)=ulnb:
f(x)⋅lnb=lnc
Solve for f(x), then for x. The answer is typically a decimal approximation.
• Stage 3: For linear exponents. When f(x)=mx+n, the logarithm step produces (mx+n)lnb=lnc, a linear equation in x. Solve by subtracting nlnb and dividing by mlnb.
Edge cases the solver handles.
• Right side zero or negative: no solution, exit immediately. • Base 1 or non-positive: invalid equation, error. • Multiple exponential terms on the same side or different bases on each side: not currently supported; throws a clear error.
For comprehensive treatment see solving exponential equations, logarithms, and change of base.
Exponential Functions — functions of the form f(x)=a⋅bx. The graph is increasing for b>1 and decreasing for 0<b<1. Always positive.
Logarithmic Equations — the inverse problem to exponential equations. Solving logbx=c requires converting to exponential form x=bc.
Natural Exponential — ex, the exponential function with base e≈2.71828. The most important exponential in calculus and continuous-growth models.
Natural Logarithm — lnx, the logarithm with base e. Inverse of ex.
Change of Base Formula — logbx=lnx/lnb. Converts any logarithm into a natural log, which calculators compute directly.
Exponent Rules — properties used to simplify expressions before solving: bm⋅bn=bm+n, (bm)n=bmn, b−n=1/bn.
Compound Interest — A=P(1+r/n)nt, an exponential growth formula. Solving for t requires the exponential-equation techniques on this page.
Continuous Compounding — A=Pert, the natural-base limit of compound interest as compounding frequency increases. Solving for t uses the natural log.
Exponential Growth and Decay — N(t)=N0⋅bt models populations, radioactive isotopes, and any process with constant multiplicative rate.
Exponential Inequalities — same form with <, >, ≤, or ≥. Solved by the same methods, with attention to whether the base is greater or less than 1 (which flips inequality direction).