Przejdź do treści
Liczbnik

Logarithm Calculator

The logarithm calculator lets you instantly compute the logarithm of any positive number to any valid base. Enter the number x and base b, and the tool returns log_b(x), the natural logarithm ln(x), and the common logarithm log10(x). A logarithm is the inverse of exponentiation: log_b(x) = y means b^y = x. Logarithms appear throughout mathematics, physics, computer science, chemistry, and finance. The decibel scale, the Richter scale for earthquakes, pH in chemistry, and the complexity of sorting algorithms all rely on logarithms. This calculator supports any base greater than zero and not equal to one, including the most common bases 2, e, and 10.

Reviewed byRedakcja Liczbnik
Calculator
Logarithm resultLogarithm log_b(x)2
Natural logarithm ln(x)
4.61
Common logarithm log10(x)
2
Number (x)
100
Base (b)
10

How we calculate the logarithm

log_b(x) = ln(x) / ln(b), where ln is the natural logarithm. Natural logarithm: ln(x) = log_e(x). Common logarithm: log10(x) = ln(x) / ln(10). All results are rounded to 8 decimal places.

Example: log2(64) = ?

log2(64) asks: to what power must 2 be raised to get 64? Since 2^6 = 64, the answer is 6. Enter 64 as the number and 2 as the base — the calculator returns 6 for log2, approximately 4.1589 for ln(64), and approximately 1.8062 for log10(64).

Frequently asked questions

What is a logarithm?

A logarithm answers the question: to what exponent must a given base be raised to produce a given number? Formally, log_b(x) = y means b^y = x. For example, log10(1000) = 3 because 10^3 = 1000.

What is the difference between ln, log10, and log2?

ln (natural logarithm) uses base e ≈ 2.71828, favoured in calculus and sciences. log10 (common logarithm) uses base 10, used in pH, decibels, and the Richter scale. log2 (binary logarithm) uses base 2, standard in computer science and information theory.

What is the change-of-base formula?

log_b(x) = ln(x) / ln(b) = log10(x) / log10(b). This lets you compute a logarithm with any base using natural or common logarithms available on most calculators.

Can I calculate the logarithm of a negative number?

No — logarithms are only defined for positive real numbers (x > 0). For negative inputs or zero, the logarithm is undefined in the real number system. Complex logarithms exist but are outside the scope of this calculator.

What is the logarithm of 1?

log_b(1) = 0 for any valid base b. This is because b^0 = 1 by definition. The result is always zero regardless of the base you choose.

What bases are not valid for a logarithm?

The base must be a positive real number (b > 0) and must not equal 1 (b ≠ 1). A base of 0 is undefined. A base of 1 is excluded because 1 raised to any power always equals 1, making it impossible to reach any other number.

Indicative result

Results are for informational and computational purposes. For extremely large or small numbers, floating-point precision limits may apply.
  • Percentage calculator

    Calculate the percentage of a number, a percentage increase and a percentage decrease. Free percentage calculator.

    Maths
  • Area of Geometric Shapes Calculator

    Calculate the area and perimeter of geometric shapes online: square, rectangle, triangle, circle, trapezoid, rhombus, regular hexagon and ellipse.

    Maths
  • Triangle Calculator

    Calculate triangle area, perimeter and angles using Heron's formula. Enter three sides or two sides and an angle — free geometry calculator online.

    Maths
  • Compound Interest Calculator

    Calculate final capital with compound interest. Enter annual rate, term and compounding frequency — free investment calculator with PLN result online.

    Maths