Percentage calculator
Calculate the percentage of a number, a percentage increase and a percentage decrease. Free percentage calculator.
Calculator · Maths
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.
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.
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).
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.
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.
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.
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.
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.
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.
Logarithms underlie many measurement scales: the Richter scale for earthquake magnitude, the decibel (dB) scale for sound intensity, pH for acidity, and star brightness in astronomy. They also govern compound interest calculations and population growth models.
log_b(x · y) = log_b(x) + log_b(y). This property means multiplying two numbers corresponds to adding their logarithms, which historically enabled rapid multiplication using logarithm tables.
log_b(x^n) = n · log_b(x). For example, log10(1000) = log10(10^3) = 3 · log10(10) = 3 · 1 = 3. The power rule is widely used in simplifying expressions in algebra and calculus.
Results are rounded to 8 decimal places using standard IEEE 754 double-precision floating-point arithmetic. For most practical applications this precision is more than sufficient. Extremely large or small inputs may be subject to rounding at the limits of floating-point representation.
Indicative result
Calculate the percentage of a number, a percentage increase and a percentage decrease. Free percentage calculator.
Calculate the area and perimeter of geometric shapes online: square, rectangle, triangle, circle, trapezoid, rhombus, regular hexagon and ellipse.
Calculate triangle area, perimeter and angles using Heron's formula. Enter three sides or two sides and an angle — free geometry calculator online.
Calculate final capital with compound interest. Enter annual rate, term and compounding frequency — free investment calculator with PLN result online.