Log Calculator
Calculate logarithms with different bases.
Understanding Log Calculator
A logarithm is a mathematical operation that determines the exponent needed to raise a given base to produce a particular number. In other words, if by = x, then the logarithm of x with base b is y, written as logb(x) = y. Logarithms are therefore the inverse operation of exponentiation.
For example, log10(100) = 2 because 10² = 100. Similarly, log2(8) = 3 because 2³ = 8. Thinking of logarithms as answering the question "What exponent do I need?" is often the easiest way to understand their purpose.
A practical way to use this calculator
Log Calculator is intended to show the mathematical relationship behind the answer, not just return a number. Enter the quantities requested by the selected method—such as Number (x), Base (b)—and keep their units or mathematical meaning consistent. Where this calculator offers different shapes, methods, or forms, choose the one that matches the problem before entering the values.
How to interpret the result
For a useful check, look at the units and the scale of the answer before accepting it. A formula can be evaluated correctly while an input is still inappropriate for the problem. Repeating the calculation with a simple test value or checking the result against the expected direction of change can help identify an input mistake.
About Log Calculator
A logarithm is a mathematical operation that determines the exponent needed to raise a given base to produce a particular number. In other words, if by = x, then the logarithm of x with base b is y, written as logb(x) = y. Logarithms are therefore the inverse operation of exponentiation.
For example, log10(100) = 2 because 10² = 100. Similarly, log2(8) = 3 because 2³ = 8. Thinking of logarithms as answering the question "What exponent do I need?" is often the easiest way to understand their purpose.
Conditions for a Valid Logarithm
For a real-valued logarithm, the number inside the logarithm must be positive. Therefore, x > 0. The base must also be positive and cannot equal 1, so the valid conditions are b > 0 and b ≠ 1.
x > 0
b > 0
b ≠ 1
How Logarithms Relate to Exponents
The relationship between logarithms and exponents is fundamental. The logarithmic equation logb(x) = y is exactly equivalent to the exponential equation by = x. This relationship allows logarithms to be used to solve equations in which the unknown appears as an exponent.
For instance, if 2x = 32, taking the logarithm gives x = log2(32) = 5. This is one of the most important applications of logarithms in algebra.
Common Logarithm
A logarithm with base 10 is called the common logarithm. It is usually written as log(x) without explicitly showing the base. Common logarithms are frequently used in science, engineering, mathematics, and measurements involving powers of ten.
log(x) = log10(x)
Natural Logarithm
The natural logarithm uses the mathematical constant e as its base, where e ≈ 2.718281828. It is written as ln(x). Natural logarithms are especially important in calculus, exponential growth and decay, differential equations, probability, statistics, and continuous mathematical models.
ln(x) = loge(x)
Change of Base Formula
Calculators and computer programs commonly evaluate logarithms by converting them to a base that is directly supported, such as the natural logarithm. The change-of-base formula allows a logarithm with any valid base to be calculated using another logarithm base.
The calculator uses this relationship to calculate logarithms for arbitrary positive bases other than 1.
Important Logarithm Properties
Logarithms follow several useful algebraic rules. These properties make it possible to simplify expressions and transform products, quotients, and powers into forms that are easier to work with.
logb(xy) = logb(x) + logb(y)
Quotient Rule:
logb(x/y) = logb(x) - logb(y)
Power Rule:
logb(xk) = k logb(x)
Understanding the Result
The value of a logarithm depends on both the number and the base. For a base greater than 1, a number greater than 1 has a positive logarithm, a number between 0 and 1 has a negative logarithm, and the logarithm of 1 is always zero.
The result is zero whenever the input number is 1 because b0 = 1 for every valid logarithm base. A negative logarithm is possible when the input is between 0 and 1, while a positive logarithm occurs for values greater than 1 when the base is greater than 1.
Applications of Logarithms
Logarithms are used in many areas of mathematics and science. They are useful for solving exponential equations, analyzing exponential growth and decay, and transforming quantities that span very large ranges.
Applications include scientific measurements, acoustics, chemistry, computer science, finance, probability, statistics, population models, signal processing, and data analysis. Logarithmic scales are particularly useful when values can vary by several orders of magnitude.
Example
Suppose we want to calculate log10(1000). We are looking for the exponent that makes 10 equal to 1000.
Since 10³ = 1000, the logarithm is log10(1000) = 3.
Therefore:
log10(1000) = 3
Logarithms and Exponential Equations
One of the most useful applications of logarithms is solving equations where the unknown appears in an exponent. If an equation has the form bx = y, taking the logarithm of both sides can isolate the exponent and convert the problem into an algebraic expression.
This makes logarithms particularly valuable for analyzing compound growth, exponential decay, doubling times, population models, and other processes described by exponential functions.
Log Calculator
Enter a positive number and a valid logarithm base to calculate logb(x). The calculator supports arbitrary positive bases except 1 and uses the change-of-base relationship to obtain the result. The result section also shows the equivalent exponential equation and a verification of the calculation.
Equivalent exponential form: by = x
Change of base: logb(x) = ln(x) / ln(b)
Disclaimer
This calculator is intended for informational purposes only. While we strive for accuracy, we cannot guarantee that every result is correct for every situation.