About the Logarithm Calculator
A logarithm answers one question: to what power must the base be raised to give this number? Since , . Logarithms undo exponentials, which makes them the tool for solving any equation where the unknown sits in an exponent, from compound interest to pH and decibels.
The calculator has three modes. Evaluate finds , giving an exact rational answer such as when is a rational power of and a change-of-base expression with a decimal value otherwise. Solve finds the exponent, and solve finds the argument. Bases may be any positive number other than 1, or for the natural logarithm.
What is a logarithm?
For a base with and a number , means exactly . The two statements are the same fact written in two ways, and converting between them is the key skill.
Two bases have special names. The common logarithm uses base 10, and the natural logarithm uses base , which arises naturally in growth, calculus and probability. Logarithms of zero and negative numbers are not defined in the real numbers, because no power of a positive base is zero or negative.
How to use the Logarithm Calculator
- Choose a mode: Evaluate, Solve b^x = y, or Solve log_b(x) = c.
- Enter the base: a positive number other than 1, 10 for the common log, or e for the natural log.
- Enter the number x (for Evaluate) or the right-hand side (for the equation modes). Fractions such as 1/8 are allowed.
- Press Calculate. Read how the number was written as a power of the base, or which change-of-base step was used.
Formulas
Definition
Product rule
Quotient rule
Power rule
Change of base
Worked example: log₄(8)
The example evaluates . Neither number is a power of the other, but both are powers of the same prime: and . The engine rewrites the question as , so .
The exact answer is therefore , and indeed .
The solution below is generated by the same engine that powers the calculator above.
Final answer
How we read your problem
Evaluate the logarithm of 8 with base 4.
Step-by-step solution
Ask: what power of the base gives the number?
Write both numbers as powers of the same prime factors
Comparing prime exponents shows 8 = 4^(3/2).
Formulas used
Definition
Change of base
Laws
4 raised to 3/2 gives 8 exactly.
Verification
- Check: 4^1.5 ≈ 8.
Detailed explanation
Exact values versus change of base
When the number and base share a common prime base, the logarithm is a rational number and can be found exactly, as in or . The calculator factors both into prime powers and compares exponents, so these answers come out exact.
Most logarithms are irrational. For , there is no exact rational value, so the calculator writes the change-of-base form and gives the decimal . The change-of-base rule works because if then , and taking natural logs gives .
Solving exponential equations
To solve , take the logarithm of both sides. The power rule brings the unknown down: , so . A quick check: and , so the answer must lie between 3 and 4.
An equation such as has no real solution, because a positive base raised to any real power is positive. The calculator reports this instead of returning a value.
Solving logarithmic equations
To solve , rewrite it in exponential form: . The solution must be positive, since logarithms are only defined for positive arguments; in more complicated equations, always check candidate answers against this condition.
Using the log rules together
The product, quotient and power rules mirror the exponent laws, because logarithms are exponents. They let you expand a single logarithm into simpler pieces, as in , or condense several logarithms into one, as in . Condensing is usually the first move when an equation contains more than one logarithm, since a single log can then be converted to exponential form.
Common mistakes
- Writing . The product rule is for , not sums.
- Dividing logs incorrectly: is not or .
- Taking the log of zero or a negative number.
- Confusing (base 10) with (base ) on a calculator.
- Forgetting that and for every valid base.
Tips
- Translate to exponential form first whenever you are unsure what a log means.
- Estimate with nearby powers before computing: is a little more than 3.
- Use prime factorisations to spot exact answers, such as .
- Keep answers in exact log form until the final step if your course allows it.
Frequently asked questions
What is the difference between log and ln?
log usually means base 10, the common logarithm, and ln means base e, the natural logarithm. Both follow the same rules; they differ only by a constant factor.
Why can't I take the log of a negative number?
A positive base raised to any real power is always positive, so no real exponent gives zero or a negative number. Those logarithms are undefined in the real numbers.
How does the change of base formula work?
Log base b of x equals ln x divided by ln b. It lets you compute a logarithm in any base using a calculator that only has ln or log buttons.
When is a logarithm a whole number or a fraction?
When the number is a rational power of the base. For example log base 4 of 8 is 3/2 because 4 to the 3/2 is 8. Otherwise the logarithm is irrational.
How do I solve an equation with the variable in the exponent?
Take the logarithm of both sides and use the power rule to bring the exponent down, then divide. For 2 to the x equals 10, x equals ln 10 divided by ln 2.
Why can't the base be 1?
Every power of 1 equals 1, so log base 1 could not distinguish between numbers and would not be a function.
What are logarithms used for?
They measure quantities that span many orders of magnitude, such as earthquake magnitude, sound level in decibels and acidity as pH, and they solve growth and decay problems.
Evaluate a logarithm
Pick a mode above and enter your base and number to see the exact answer or the change-of-base calculation.