SciCalc.net
IndiaFree tools

Log calculator: logarithm to any base

Enter the number and the base. When the answer is a whole number or a simple fraction it is shown exactly, for example log₄ 8 = 3/2.

Last updated

log2(1024) =

10

Working

  1. 1log2(1024) = 10210 = 1024
Try:

How it works

logb x is the power you raise b to in order to get x: if by = x then logb x = y. For any base, the change-of-base rule turns it into logs the calculator already knows:

logb x = ln x ÷ ln b = log x ÷ log b

x must be positive, and the base must be positive and not 1.

Worked example

Find log₄ 8. Both numbers are powers of 2: 4 = 2² and 8 = 2³. So 43/2 = (2²)3/2 = 2³ = 8, which means log₄ 8 = 3/2 = 1.5. log₃ 50 has no tidy form: ln 50 ÷ ln 3 ≈ 3.560876795.

The three log rules

  • Product: log_b(xy) = log_b x + log_b y. For example log₂ 32 = log₂(8 × 4) = 3 + 2 = 5.
  • Quotient: log_b(x/y) = log_b x − log_b y. log 1000 − log 10 = 3 − 1 = 2 = log 100.
  • Power: log_b(xⁿ) = n log_b x. log₂ 8⁵ = 5 × 3 = 15.

Solving an exponential equation

To solve 2ˣ = 50, take logs: x = log₂ 50 = ln 50 ÷ ln 2 ≈ 5.64385619. Check: 2⁵ = 32 and 2⁶ = 64, so the answer must be between 5 and 6.

Common mistakes

  • log(a + b) is not log a + log b; the product rule is about multiplying.
  • Mixing up log and ln: log usually means base 10 and ln base e, so log 100 = 2 but ln 100 ≈ 4.605170186.
  • Taking the log of 0 or a negative number: it has no real value.

Tips

  • log with no base written usually means base 10 on calculators; ln means base e.
  • Useful rules: log(ab) = log a + log b, log(a/b) = log a − log b, log(aⁿ) = n log a.
  • log of 0 or a negative number is undefined for real numbers.

Questions

What does log mean without a base?

On calculators and in most school maths, log x means log base 10. In programming languages such as C, Python and JavaScript, log(x) is the natural log, so check the convention of your course or tool.

How do I find log base 2?

Enter 2 as the base. Or use log₂ x = ln x ÷ ln 2.

Can the base be a fraction?

Yes, as long as it is positive and not 1. For example log base 1/2 of 8 is −3.

How do I solve 2^x = 50?

Take the log of both sides: x = log₂ 50 = ln 50 ÷ ln 2 ≈ 5.64385619.

What is the log of 1?

0, in every base, because b⁰ = 1.

What is log base 10 of 1000?

3, because 10³ = 1000.

Sources

  1. NIST Special Publication 811 (2008 edition), Guide for the Use of the International System of Units (SI). §10.1.2 (p. 33) and checklist item (13): logₐ x is the logarithm to base a; ln x = logₑ x, lg x = log₁₀ x, lb x = log₂ x; the base is written when it is needed. Checked 22 November 2026.
  2. POSIX.1-2024 (The Open Group Base Specifications Issue 8), log(). DESCRIPTION and RETURN VALUE: log() computes the natural logarithm; log(1) = +0; x = ±0 is a pole error and negative x a domain error. Checked 22 November 2026.
  3. NIST Digital Library of Mathematical Functions, §4.2 Definitions (logarithm). §4.2(i): ln is real for positive real arguments and its only zero is at 1; §4.2(ii) Eqs. 4.2.8–4.2.9 (change of base), 4.2.14–4.2.16 (logₑ = ln, log₁₀); log₁₀ is the common logarithm. Checked 22 November 2026.
  4. NIST Digital Library of Mathematical Functions, §4.8 Identities. Eqs. 4.8.2 (product rule), 4.8.4 (quotient rule), 4.8.13 (ln(aˣ) = x ln a for a > 0, the power rule). Checked 22 November 2026.
  5. Casio fx-115ES PLUS / fx-991ES PLUS C (2nd edition) user’s guide, online manual. Logarithmic Functions: log(a, b) key; base 10 is the default when no base is entered; Example 1 log₁₀ 1000 = log 1000 = 3. Checked 22 November 2026.