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
- 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).
- 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.
- 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).
- 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)
- Restate as a power: log₃(81) asks “3 to what power equals 81?”
- Climb the powers of 3: 3¹ = 3, 3² = 9, 3³ = 27, 3⁴ = 81. Four multiplications land exactly on 81, so 81 = 3⁴.
- Read off the answer: log₃(81) = 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.
- Bracket the answer first: 5³ = 125 and 5⁴ = 625, so the exponent lies between 3 and 4.
- Apply change of base: log₅(200) = ln(200) ÷ ln(5).
- Divide the natural logs: ln(200) ≈ 5.2983 and ln(5) ≈ 1.6094, so 5.2983 ÷ 1.6094 ≈ 3.2920.
- 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.