How the log calculator works
A logarithm answers an exponent question: what power of the base produces the number? For example, log₄(64) = 3 because 4³ = 64. The base, the number and the logarithm are three parts of the same relationship.
The calculator uses two known values to find the third. It can find a logarithm, work backwards to the number through an antilog, or find an unknown base. Its real-number calculations require a positive Number and a positive Base other than 1.
- 1Enter the two values you know. Use Base and Number to find Log, Base and Log to find Number, or Number and Log to find Base. Leave the value you want to find empty.
- 2Check the base. Use 10 for a common logarithm, e for a natural logarithm, or 2 for a binary logarithm. A base between 0 and 1 is also valid.
- 3Read the completed equation. The result gives the missing value and its exponential form. The common, natural and binary comparison logs all use the same Number, regardless of which value you solved for.
The logarithm and antilog formulas
For real logarithms, b > 0, b ≠ 1 and x > 0. Finding a valid base with the last formula also requires x ≠ 1.
The second equation is the change-of-base formula. Divide the natural log of the number by the natural log of the base. Common logs work too, provided both parts of the fraction use the same base. For example, log₂(10) = ln(10) ÷ ln(2) ≈ 3.3219. This fits between 3 and 4 because 2³ = 8 and 2⁴ = 16.
An antilog reverses the calculation by raising the base to the logarithm. If log₁₀(x) = 2.5, then x = 102.5 ≈ 316.2278. To find an unknown base instead, use the reciprocal exponent: if log_b(81) = 4, then b = 811/4 = 3.
Worked example: log base 10 of 1000
Enter Base = 10 and Number = 1000, leaving Log empty. Since 10 × 10 × 10 = 1000, the missing exponent is exactly 3. The change-of-base calculation reaches the same answer: ln(1000) ÷ ln(10) = 3.
The comparison logs differ because each asks about a different base. They do not change the original number. You can also reverse this example: Base = 10 and Log = 3 give Number = 1000, while Number = 1000 and Log = 3 give Base = 10.
Common, natural and binary logarithms
| Name | Notation | Base | Exact example |
|---|---|---|---|
| Common logarithm | log₁₀(x) | 10 | log₁₀(1000) = 3 |
| Natural logarithm | ln(x) | e ≈ 2.71828 | ln(e²) = 2 |
| Binary logarithm | log₂(x) | 2 | log₂(1024) = 10 |
The notation ln always identifies the natural logarithm in this calculator. An unqualified log often means base 10 in school algebra, but some mathematical and software contexts use it for the natural logarithm. Check the stated base instead of relying on the word log alone.
Logarithm rules
These rules require M > 0, N > 0, b > 0 and b ≠ 1; p can be any real number.
These are the product, quotient and power rules. For example, log₁₀(100 × 10) = log₁₀(100) + log₁₀(10) = 2 + 1 = 3. Two useful checks are log_b(1) = 0 and log_b(b) = 1.
What the sign and graph tell you
For a base greater than 1, the logarithm increases as the number increases. Numbers above 1 have positive logs, and numbers between 0 and 1 have negative logs. For a base between 0 and 1, the function decreases and those signs reverse: log₀.₅(8) = −3 because 0.5⁻³ = 8.
Every real logarithmic graph passes through (1, 0) and (b, 1), with a vertical asymptote at x = 0. As x approaches zero from above, the log approaches negative infinity when b > 1, but positive infinity when 0 < b < 1. Neither limit defines a logarithm at zero.
Tips for checking your answer
- 1Try powers before using decimals. Recognizing 1024 as 2¹⁰ gives an exact answer immediately. Fractional and negative powers also count: 10⁻³ = 0.001, so log₁₀(0.001) = −3.
- 2Keep intermediate values unrounded. When checking change of base by hand, divide using the full logarithm values and round at the end. More displayed decimal places do not turn an approximation into an exact value.
- 3Check with exponentiation. Raise the base to your result. An exact logarithm reproduces the number exactly; a rounded logarithm should reproduce it approximately.
Log calculator FAQ
What is log base 10 of 100?
It is 2, because 10² = 100. The logarithm gives the exponent, not the number of times you divide 100 by 2.
Can a negative number have a real logarithm?
No. A positive base raised to any real exponent stays positive, so it cannot produce a negative number. Complex logarithms extend beyond this real-number calculator.
Why is base 1 not allowed?
Every real power of 1 equals 1. It cannot produce other positive numbers, and for the number 1 it does not identify a unique exponent. A logarithm needs a unique exponent for each positive number.
Can a logarithm be a fraction or decimal?
Yes, logarithms are not restricted to whole numbers. For example, log₄(8) = 1.5 exactly because 41.5 = 8. Other logarithms, such as log₂(10), have nonterminating decimal values that must be rounded for display.
Is the log of a sum equal to the sum of the logs?
No, the product rule applies to multiplication, not addition. For example, log₁₀(10 + 90) = 2, while log₁₀(10) + log₁₀(90) = log₁₀(900), which is not 2.
Sources
- 16.3 Logarithmic Functions, College Algebra 2e · OpenStax, Rice University · Accessed November 2026
- 26.5 Logarithmic Properties, College Algebra 2e · OpenStax, Rice University · Accessed November 2026
- 34.2 Definitions: Logarithm, Exponential, Powers · National Institute of Standards and Technology · Accessed November 2026
- 4Logarithms: changing the base · mathcentre · Accessed November 2026
- 56.4 Graphs of Logarithmic Functions, College Algebra 2e · OpenStax, Rice University · Accessed November 2026