Logarithm Calculator
A logarithm is a power in disguise: logb(x) asks “b to what power gives x?” This calculator answers that for any base — exactly, as a fraction, when the answer is a true power (log4 8 = 3/2), and as a clearly marked decimal when it is not. Choose a base below, or ask the question in words on the home page: hints first, then the full solution on the whiteboard. The idea itself — what a logarithm is and where the laws come from — is taught in the logarithms lesson. Free, no sign-up.
log₂ 8 = ?
Enter a base and a number and the logarithm appears here.
What a logarithm is
logb(x) = n means exactly the same as bn = x
- b is the base — the number being raised to a power. It must be positive and not 1. x is the number (the argument) — it must be positive, because a positive base raised to any power is always positive, so log of 0 or of a negative number does not exist. n is the logarithm itself — the power.
- log with no base shown means base 10 (the common logarithm — the log key on a calculator). ln means base e ≈ 2.718 (the natural logarithm).
- Exact or decimal? When x is a true power of b the answer is exact, and it can be a fraction: log4 8 = 3/2 because 43/2 = √64 = 8. When it is not — log2 3 — there is no exact value; the calculator shows ≈ 1.585 and the solver on the home page says so honestly unless you ask for an approximation.
- The antilog undoes it. If logb(x) = n, then x = bn — that power is called the antilog of n. The antilog of 2 in base 10 is 10² = 100.
The log laws
- Product law: logb(xy) = logb x + logb y — a product inside becomes a sum outside.
- Quotient law: logb(x/y) = logb x − logb y — a quotient inside becomes a difference outside.
- Power law: logb(xn) = n logb x — a power inside comes down in front.
- Change of base: logb(x) = log(x) ÷ log(b) — how a calculator handles any base, using the base-10 key for both logs.
Running the first three laws forwards expands a logarithm (log2 (8x³) becomes 3 + 3 log2 x); running them backwards condenses several logarithms into one (3 log2 x − log2 y becomes log2(x³/y)). The solver does both — ask it in words.
Think first
Before reading the solution, try to answer these — they are the hints Arithly itself gives:
- Split products into sums, quotients into differences, and bring powers down in front (the three log laws).
- A number that is an exact power of the base becomes a plain number.
- The expansion is 3 + 3 log₂ x.
Worked example 1 — expanding with the laws
Expand log_2 (8x^3)
- The laws used: the product law log_b(xy) = log_b x + log_b y, the quotient law log_b(x/y) = log_b x − log_b y, and the power law log_b(x^n) = n log_b x.
- Split the argument into its factors and bring every power down in front of its logarithm.
- Collecting the pieces gives 3 + 3 log_2 x.
- Answer: 3 + 3 log_2 x.
Answer: 3 + 3 log_2 x
Worked example 2 — a natural-log equation
Solve ln (x - 1) = 2
- ln is log base e. In index form, ln(A) = n means A = e^n.
- So x - 1 = e^2.
- Solve the ordinary equation that is left: x = e^2 + 1.
- Answer: x = e^2 + 1.
Answer: x = e^2 + 1
Worked example 3 — a fractional power
log_4 8
- log_4 8 asks: “to what power must 4 be raised to give 8?”
- The power is a fraction: 4^(3/2) means the square root of 4^3. Check: 8^2 = 64 and 4^3 = 64 — equal, so the power is 3/2.
Answer: 3/2
Ask it in words
The solver on the home page answers logarithm questions in all of these shapes:
- Plain evaluations in any dress: “log_2 32”, “log base 3 of 81”, “log to the base 2 of 16”, “What is the value of log_3 1/9?” — including fraction bases like log_(1/2) 8, fraction answers like log_4 8, and sums and differences of two logs.
- The laws: “Expand log_2 (x^2 y)”, “Condense 3 log_2 x − log_2 y”, “Write 2 log x + log y as a single logarithm”, “State the product rule for logarithms”, and the change of base in all its forms.
- Equations: “Solve log_2 x = 5”, “Solve log_5 (2x) = 3”, “Solve ln (x − 1) = 2”, “Solve log_2 x = log_2 8”, “Solve 2 log_2 x = 4”, plus exponential equations like “Solve 3^x = 27”.
- Conversions and antilogs: “Write 2^5 = 32 in logarithmic form”, “Write log_3 81 = 4 in exponential form”, “Find the antilog of 2”, “If log_2 x = 5, what is x?”
- Concept asks: “What is a logarithm?”, “What is the natural logarithm?”, “Who invented logarithms?”, “What is the domain of log x?” — and the log scales: pH from a concentration (and back), and how many times more intense one earthquake is than another.
- Approximations, but only when you ask for them: “Approximate log_2 3 to 3 decimal places”, “What is log_2 3 approximately?”
Three honest notes. A plain ask with no exact answer — “log_2 3” — is answered “No exact value”, never dressed up as a rounded decimal; ask for an approximation and you get one, marked ≈. A sum inside a logarithm, like log(x + 2), cannot be expanded — no law covers it — so those asks are left unanswered rather than faked. And ln of a plain number is only ever approximate (ln 20 ≈ 3, not 3 exactly), so “ln 20 = 3 in exponential form” is declined: e³ is not 20. For graphs of logarithmic functions, see Logarithmic Functions; the topic from the beginning is the logarithms lesson.
Practice
Try these yourself. Each one opens in Arithly with the question already filled in — solve it there and check your working:
- log_2 32 Try it in Arithly →
- Solve log_3 x = 4 Try it in Arithly →
- Expand log(x^2 y) Try it in Arithly →
More topics: all maths topics · Next topic: Two-Step Equations Calculator