Introduction
A logarithm tells you what power you need to raise a base number to in order to get another number. For example, log base 2 of 8 equals 3, because 2 raised to the power of 3 equals 8. Logarithms are the opposite of exponents. They show up a lot in algebra, science, and everyday math problems. This log calculator lets you quickly solve logarithms with any base and any number. Just enter your values, and the calculator does the work for you. It's a simple way to check your homework or save time on tough problems.
How to Use Our Log Calculator
Enter a number and a base to calculate the logarithm. The calculator will give you the log value instantly.
Number (x): Type the number you want to find the logarithm of. This must be a positive number greater than zero.
Base (b): Enter the base of the logarithm. Common choices are 10 (common log), 2 (binary log), or e (natural log). The base must be a positive number and cannot equal 1.
Result: The calculator will show you the exponent that the base must be raised to in order to equal your number. In other words, if logb(x) = y, the result is y.
What Is a Logarithm?
A logarithm answers one simple question: what power do you raise a base to in order to get a certain number? For example, log base 2 of 8 equals 3, because 2 raised to the 3rd power equals 8. In short, logarithms are the opposite of exponents.
How Logarithms Work
Every logarithm has three parts: the base, the argument (the number you're taking the log of), and the result. When you see logb(x) = y, it means by = x. For instance, log10(100) = 2 because 102 = 100.
Common Types of Logarithms
- Common logarithm (log): Uses base 10. This is the default on most calculators.
- Natural logarithm (ln): Uses base e (approximately 2.71828). It shows up often in science and advanced math.
- Binary logarithm (log2): Uses base 2. It is widely used in computer science.
Key Logarithm Rules
There are a few important rules that make working with logarithms easier:
- Product Rule: logb(x × y) = logb(x) + logb(y)
- Quotient Rule: logb(x ÷ y) = logb(x) − logb(y)
- Power Rule: logb(xn) = n × logb(x)
- Change of Base Formula: logb(x) = log(x) ÷ log(b). This formula is especially handy when you need to convert between bases using a Fraction Calculator to simplify the resulting expression.
Important Things to Remember
You can only take the logarithm of a positive number. The base must also be positive and cannot equal 1. The log of 1 is always 0, no matter what the base is, because any number raised to the power of 0 equals 1.
Where Are Logarithms Used?
Logarithms are used in many real-world areas. The Richter scale for earthquakes, decibels for sound, and pH levels in chemistry all rely on logarithms. You can explore pH calculations further with our pH Calculator. They help us work with very large or very small numbers by turning multiplication into addition, which makes calculations much simpler. Logarithms also play a key role in solving algebraic equations — for example, when working with quadratic equations that involve exponential terms. If you need to analyze the rate of change of a logarithmic function, or calculate the slope of a log curve at a given point, those tools pair well with this calculator. You might also find logarithms useful when computing percent change on exponential growth data or when working with standard deviations of log-transformed datasets. For more advanced work, our Derivative Calculator can help you find the derivative of logarithmic functions, and the Percentage Calculator is handy for converting log-based results into percentages.