About this tool
Calculate log base 10, ln, log2 or any base, find antilogs, solve b^x = y for x, and see exact values and change-of-base steps with a graph.
This log calculator finds log_b(x) for any positive base and number, and shows the common log, natural log and binary log side by side. Inputs are read as exact fractions, so very large or very small values such as 1e-500 or a 300-digit integer keep their accuracy: the logarithm is taken from the digit count plus the leading digits. When the answer is a simple fraction it is reported exactly — log₈ 4 = 2/3, not 0.6666667 — after checking that 8² = 4³ with whole-number arithmetic. Every answer shows the change-of-base working, ln x ÷ ln b. Antilog mode computes bʸ, Solve mode rearranges a · b^(kx) = y to x = log_b(y/a) ÷ k, and a graph marks your point on y = log_b(x).
Open Log Calculator on AltFTool — it loads instantly in your browser.
Choose a mode: Logarithm, Antilog or Solve bˣ = y (keys 1–3 also switch).
Enter the Number (x) and pick a base — log₁₀, ln (e), log₂ or Other base for any positive base except 1.
Read log_b(x) with its log₁₀, ln and log₂ values, characteristic and mantissa, and the change-of-base Working.
For an equation, fill in Base b, Right side y and optionally Coefficient a and Rate k to solve for the exponent x.
Pick log₁₀, ln, log₂ or any other base; the result always lists log₁₀ x, ln x and log₂ x too, plus the characteristic and mantissa of the common log.
Results such as log₂ 1024 = 10, log₂(1/8) = −3 and log₉ 27 = 3/2 are recognised and shown exactly instead of as rounded decimals.
Logarithm, Antilog and Solve bˣ = y modes cover the usual questions, including equations with a coefficient and rate such as 500 · 1.05ˣ = 1000.
Each answer includes the change-of-base steps and a check, and the full result can be copied in one click. Inputs are saved in this browser.
| x | log₁₀ x | ln x | log₂ x |
|---|---|---|---|
| 1 | 0.0000 | 0.0000 | 0.0000 |
| 2 | 0.3010 | 0.6931 | 1.0000 |
| 3 | 0.4771 | 1.0986 | 1.5850 |
| 4 | 0.6021 | 1.3863 | 2.0000 |
| 5 | 0.6990 | 1.6094 | 2.3219 |
| 6 | 0.7782 | 1.7918 | 2.5850 |
| 7 | 0.8451 | 1.9459 | 2.8074 |
| 8 | 0.9031 | 2.0794 | 3.0000 |
| 9 | 0.9542 | 2.1972 | 3.1699 |
| 10 | 1.0000 | 2.3026 | 3.3219 |
log 1 = 0 in every base. To find the log of a larger number, use log₁₀(a × 10ⁿ) = log₁₀ a + n — for example log₁₀ 300 = 0.4771 + 2 = 2.4771.
A logarithm answers the question “what power gives this number?”. log_b(x) = y means bʸ = x. So log₁₀ 1000 = 3 because 10³ = 1000, and log₂ 8 = 3 because 2³ = 8. Logarithms turn multiplication into addition, which is why they appear in scales such as pH, decibels and earthquake magnitude.
Use the change-of-base formula: log_b(x) = ln(x) ÷ ln(b), or equivalently log₁₀(x) ÷ log₁₀(b). For log₃ 50 that is ln 50 ÷ ln 3 = 3.9120 ÷ 1.0986 ≈ 3.561. Choose Other base in the calculator and it shows these steps for you.
“log” usually means the common logarithm, base 10, while “ln” is the natural logarithm, base e ≈ 2.71828. They differ by a constant factor: ln x = log₁₀ x × ln 10 ≈ 2.302585 × log₁₀ x. In some higher-maths and programming contexts “log” means ln, so check the convention you are using.
The antilog reverses a logarithm: if log_b(x) = y, then the antilog is x = bʸ. For base 10, antilog(2.5) = 10^2.5 ≈ 316.23; for the natural log the antilog is eʸ. Antilog mode calculates bʸ for any base, including results far too large or small for an ordinary decimal, which it gives in scientific notation.
Take the logarithm of both sides so the exponent comes down: x = log₂ 32 = 5. In general bˣ = y gives x = log_b(y) = ln y ÷ ln b. For a · b^(kx) = y, divide by a first and then by k: x = log_b(y/a) ÷ k. Solve mode does each step and checks the answer.
For a positive base, bʸ is positive for every real y, so no real exponent can produce zero or a negative number. That means log_b(x) is only defined for x > 0. As x approaches 0 the logarithm heads towards minus infinity. In complex numbers, logs of negatives exist, but this calculator works in the real numbers.
The main rules are: log(xy) = log x + log y, log(x/y) = log x − log y, log(xⁿ) = n · log x, log_b b = 1, log_b 1 = 0, and the change of base log_b x = ln x / ln b. They hold for any valid base, and the Log rules panel lists each one with a worked example.
Base-2 logarithms count doublings, so they appear throughout computing: log₂ n is the number of bits needed to represent n values and the number of steps a binary search takes on n items. log₂ 1024 = 10 because 2¹⁰ = 1024. They are also used for musical octaves and for information measured in bits.
For a common (base-10) logarithm, the characteristic is the integer part and the mantissa is the fractional part. log₁₀ 250 = 2.39794, so the characteristic is 2 (250 has three digits) and the mantissa is 0.39794, which is log₁₀ 2.5. Printed log tables list only mantissas, because the characteristic just shifts the decimal point.
Solve (1 + r)ˣ = 2 for x, giving x = ln 2 ÷ ln(1 + r). At 5% per year that is 0.6931 ÷ 0.04879 ≈ 14.21 years; at 8% it is about 9.01 years. The rule of 72 (72 ÷ the rate) gives a quick estimate. In Solve mode, enter base 1.05 and right side 2.
Add the Log Calculator widget to your blog or website — free, responsive, no signup. Just keep the “Widget by AltFTool” credit link visible.
<iframe src="https://www.altftool.com/embed/widget/log-calculator"
title="Log Calculator — free AltFTool widget"
width="100%" height="640" style="border:0;border-radius:12px;overflow:hidden"
loading="lazy" referrerpolicy="no-referrer-when-downgrade" allow="clipboard-write"></iframe>
<p style="font-size:12px;margin:4px 0 0">Widget by <a href="https://www.altftool.com/tools/all/log-calculator?utm_source=embed&utm_medium=widget" rel="nofollow">AltFTool — free online tools</a></p>