Math Solver Free

Logarithm Calculator

Logs in any base, expanded and evaluated — instantly and free.

How Logarithms Work

Logarithms are exponents in reverse — the operation you reach for when the unknown is hiding up in the power. Where 10³ = 1000 asks “what is 10 cubed?”, log₁₀(1000) = 3 asks “10 to what power gives 1000?” Every exponential question has a mirror-image log question, and this calculator works both directions: give it a base and a value and it returns the exponent, showing the change-of-base working and a power check; or switch modes and it expands a log expression into simpler pieces using the log laws. No sign-up, and everything runs in your browser.

The Symbols, One by One

In log_b(x) = y, each symbol has a precise job. The subscript b is the base — the number being raised to a power, which must be positive and not 1. The x in parentheses is the argument — the result you are trying to reach, and it must be positive. The y on the right is the logarithm itself: the exponent. The equivalence log_b(x) = y ⟺ b^y = x is the whole definition. Two shorthands matter: ln means base e (e ≈ 2.71828), and a bare log with no subscript usually means base 10.

How to Use the Logarithm Calculator

  1. Stay on the Evaluate log tab to compute a number: type your base into the Base (b) field and your number into the Value (x) field — or tap a preset chip for Common log (10), Natural log (e), or Binary log (2).
  2. Press Evaluate Logarithm. The result appears with steps: the question restated as a power, the change-of-base division, and a final check that b raised to the answer returns x.
  3. To expand an expression instead, switch to the Expand / condense tab and type the form log(base, expression) — for example log(2, x*y), log(10, x/y), or log(5, x^3).
  4. Press Expand Logarithm and read which law — product, quotient, or power — was applied to split the expression.

The Three Log Laws

  • Product: log(xy) = log x + log y
  • Quotient: log(x/y) = log x − log y
  • Power: log(x^n) = n · log x

Domain Rules

You can only take logs of positive numbers, and the base must be positive and not 1. That is why log(−5) and log₁(x) are undefined — no power of a positive base gives a negative number.

Worked Example: Evaluating log₃(81)

  1. Restate as a power: log₃(81) asks “3 to what power equals 81?”
  2. Climb the powers of 3: 3¹ = 3, 3² = 9, 3³ = 27, 3⁴ = 81. Four multiplications land exactly on 81, so 81 = 3⁴.
  3. Read off the answer: log₃(81) = 4.
  4. Verify by change of base: ln(81) ÷ ln(3) = 4.3944 ÷ 1.0986 = 4, matching the count. In the calculator, enter base 3 and value 81 and the same steps appear automatically, ending with the check 3⁴ = 81.

Worked Example: Evaluating log₅(200) by Change of Base

Not every logarithm is a whole number. Suppose a population model asks for log₅(200) — the exponent that turns 5 into 200.

  1. Bracket the answer first: 5³ = 125 and 5⁴ = 625, so the exponent lies between 3 and 4.
  2. Apply change of base: log₅(200) = ln(200) ÷ ln(5).
  3. Divide the natural logs: ln(200) ≈ 5.2983 and ln(5) ≈ 1.6094, so 5.2983 ÷ 1.6094 ≈ 3.2920.
  4. Check the power: 5^3.2920 ≈ 200, and the value sits inside the bracket from step 1, so log₅(200) ≈ 3.292. In the tool, base 5 and value 200 produce exactly these steps — useful whenever the base is not 10 or e and no log button matches it.

When Logarithms Earn Their Keep

Use logs whenever an unknown sits in an exponent. A saver asks how long money takes to double at a fixed interest rate — that is a log equation. A chemist converts hydrogen-ion concentration to pH, and a sound engineer does the same for decibels, because logs compress enormous ranges into friendly numbers. A programmer counts binary search steps with log₂, and a geologist reads earthquake energy off the Richter scale. In each case the calculator above supplies the exponent directly, or expands the expression so the algebra can proceed.

Common Mistakes

  • Inventing a sum law: log(a + b) does not equal log(a) + log(b). The product law applies to multiplication inside the log — log(ab) — not to addition. Test it: log₁₀(100 + 100) = log₁₀(200) ≈ 2.301, but log₁₀(100) + log₁₀(100) = 4.
  • Dividing the wrong way in change of base: log_b(x) = ln(x) ÷ ln(b) — the value's log goes on top, the base's log underneath. Reversing them gives the reciprocal of the true answer.
  • Ignoring the domain: entering a negative value, a zero, or base 1 produces an error, not a number, because no real exponent can produce those results from a positive base.

Which Base When?

Base 10 runs the scales scientists use to compress huge ranges: pH, the Richter scale, and decibels each move one step per tenfold change. Base e (ln) is the language of growth and decay — compound interest, half-life, and cooling all simplify with natural logs. Base 2 belongs to computing: log₂ tells you how many bits a value needs or how many times a binary search can halve a list. Pick the base that matches the problem, not the one that happens to be on your calculator.

Logs undo exponentials: try the exponent calculator or compute powers directly on the scientific calculator.

Frequently Asked Questions

What is a logarithm?

A logarithm answers: “to what power must the base be raised to get this number?” log₂(8) = 3 because 2³ = 8. The two forms are interchangeable — log_b(x) = y means exactly the same as b^y = x — so every logarithm question can be rewritten as an exponent question, and vice versa.

What is the change-of-base formula?

log_b(x) = ln(x) ÷ ln(b). Most calculators only have buttons for base 10 and base e, so this formula converts any log into a quotient of two logs they can compute. It works with any convenient base on top and bottom, as long as you use the same one in both places.

How do you expand log(x·y)?

With the product law: log(xy) = log(x) + log(y). The other two laws follow the same spirit — a quotient inside becomes a subtraction, log(x/y) = log(x) − log(y), and a power inside drops down as a multiplier, log(x^n) = n · log(x). Together they turn one complicated log into several simple ones.

Why is the logarithm of a negative number undefined?

Because a logarithm is an exponent, and no real exponent makes a positive base negative: 10 raised to any real power is always positive, and so is 2 or e. Zero fails too, since b^y only approaches 0 without reaching it. That is why this calculator asks for a positive value and a positive base other than 1.

What is the difference between log, ln, and log₂?

They are the same operation with different bases. Plain log usually means base 10, the common logarithm used on pH and decibel scales. ln is the natural logarithm, base e ≈ 2.71828, used for growth and decay. log₂ is the binary logarithm, base 2, used in computing for bits and binary search steps.

Is this calculator free?

Yes, this log calculator is free — no account, no download, no usage limit. Enter a base and a value and the result appears immediately, computed in your own browser, together with the change-of-base steps and a power check you can verify by hand.

Related Tools & Guides

About the MathSolverFree Team

The MathSolverFree Team builds and maintains the calculators and step-by-step solvers on this site. Every tool is checked against worked textbook examples before it is published, and the method behind each solver is written out in full — in the worked examples on the page and in our guides — so you can see exactly how an answer is reached, not just the answer itself.

How we build and test our tools·More about the team