Math & Statistics · Browser · Free

Logarithm Calculator

Use e for scientific notation. E.g: 5e3, 4e-8, 1.45e12

Pick a mode, type the numbers or expression it asks for, and press Calculate to get a logarithm, combined logarithmic operations, symbolic expansions, a change-of-base ratio, or an anti-logarithm. The results and graphs appear below the button.

What this calculator does

One form covers four modes. Logarithm returns log_b(x) from a Number (x) and a Base (b), and supports an Expand option to combine two logarithms with an operator (+, -, ×, ÷) and coefficients. Calculate with log(number,base) evaluates arithmetic expressions or simplifies symbolic variables using product, quotient, and power rules. Change of base returns the logarithm in a New base (c) as the ratio log_c(x) / log_c(b). Anti-logarithm raises the Base (b) to an Exponent (y) to give bʸ.

Numbers may be entered in scientific notation using e, such as 5e3, 4e-8, or 1.45e12. Negative inputs and imaginary numbers like i are evaluated over the complex plane to return results in re + im i format. A visual graph of log_b(x) is generated for positive real inputs.

How a logarithm reads

A logarithm answers a power question. When bʸ = x, the base-b logarithm of x is y. That is why a logarithm of 100 to base 10 comes back as Logarithm: 2, and why the reverse step — base 10 raised to the exponent 2 — returns Anti-logarithm: 100.

The other examples on this page follow the same shape: log₂(1024) = 10 and logₑ(e) ≈ 1. Logarithm of zero is undefined, while negative values produce complex logarithms.

Logarithm formula

log_b(x) = y when bʸ = x.

Change of base: log_b(x) = log_c(x) / log_c(b).

Anti-logarithm: when y = log_b(x), the value behind the logarithm is bʸ.

Product rule: log_b(x × y) = log_b(x) + log_b(y).

Quotient rule: log_b(x / y) = log_b(x) - log_b(y).

Power rule: log_b(xʸ) = y × log_b(x).

Using the results

Change of base shows its working, not just an answer. For Number (x) 8, Base (b) 2 and New base (c) 10 the cards report Result: 3 together with log₁₀(8): 0.903089986991944 and log₁₀(2): 0.301029995663981.

Copy writes a result and its unit to the clipboard, so you can drop it straight into your own notes. Clear resets the form and collapses expanded fields. Everything runs in the browser and nothing is uploaded.

Worked examples
InputResult
Mode: Logarithm — log_b(x), Number (x): 100, Base (b): 10Logarithm: 2
Mode: Logarithm — log_b(x), Number (x): 2, Base (b): 10Logarithm: 0.301029995663981
Mode: Logarithm — log_b(x), Number (x): 1024, Base (b): 2Logarithm: 10
Mode: Logarithm — log_b(x), Number (x): e, Base (b): eLogarithm: 1
Mode: Change of base — log_c(x) / log_c(b), Number (x): 8, Base (b): 2, New base (c): 10Result: 3; log₁₀(8): 0.903089986991944; log₁₀(2): 0.301029995663981
Mode: Anti-logarithm — bʸ, Base (b): 10, Exponent (y): 2Anti-logarithm: 100