ProMathTools
ProMathTools

Logarithm Calculator

Calculate the logarithm of a number to any base, with adjustable precision. Always shows natural log (ln) and common log (log₁₀) alongside your custom-base result.

Enter the number you want to find the logarithm of (must be positive).

How it works

This tool helps you calculate the logarithm of a number to any base you choose. It's perfect for understanding how exponents work in reverse, finding the power you need to raise a base to get a specific value.


The Formula

The logarithm of a number x to a base b is denoted as log_b(x). It answers the question: "To what power must b be raised to get x?" So, if log_b(x) = y, then b^y = x.

Change of base: log_b(x) = ln(x) / ln(b) = log₁₀(x) / log₁₀(b)

Worked Example

  1. Example: Log Base 2 of 8

    Let's find log_2(8). Here, the number (x) is 8 and the base (b) is 2. We're asking: "2 to what power equals 8?" Since 2^3 = 8, the logarithm log_2(8) is 3. Alongside that, ln(8) ≈ 2.079 and log₁₀(8) ≈ 0.903.


Tips, Assumptions & Limitations

  • The number (x) must be positive.
  • The base (b) must be positive and not equal to 1.
  • Common logarithms use base 10 (log₁₀), often written as just 'log'.
  • Natural logarithms use base e (logₑ), often written as 'ln'.
  • Use precision 3–16 to control how many decimal places are shown.
FAQ

A logarithm is the inverse operation to exponentiation. It tells you what power you need to raise a specific base to, to get a certain number. For example, log₂(8) = 3 because 2³ = 8.

A common logarithm has a base of 10 (log₁₀ or just 'log'). A natural logarithm has a base of 'e' (approximately 2.71828), written as 'ln'. This calculator always shows both ln(x) and log₁₀(x) next to your chosen-base result.

Use the Precision dropdown to choose 3–16 decimal places. The custom-base result, natural log, and common log all use the same precision.

Choose Custom base in the Base dropdown, enter your base (positive and not 1), enter the number, and calculate. The tool uses the change-of-base formula: log_b(x) = ln(x) / ln(b).

No, you cannot. The argument of a logarithm (the number 'x') must always be positive. This is because there's no real number power you can raise a positive base to that will result in a negative number or zero.

If the base were 1, then 1 raised to any power is always 1. So, log₁(x) would only be defined if x=1, and even then, it would be undefined because any power works. To avoid this ambiguity and ensure a unique result, the base must not be 1.

Companion article

Logarithm Calculator Explained: Understanding Logs and Bases

Related Calculators

Related Guides


How this calculator works

Logarithms might seem a bit daunting at first, but they're simply the reverse of exponents. Just as division undoes multiplication, and subtraction undoes addition, logarithms undo exponentiation. Our Logarithm Calculator is here to make understanding and calculating these values straightforward, helping you grasp this fundamental concept in algebra.

Explanation

At its core, a logarithm answers a simple question: 'How many times do I multiply a certain number (the base) by itself to get another number?' For instance, if you have 2³ = 8, the logarithm asks, 'To what power do I raise 2 to get 8?' The answer is 3. We write this as log₂(8) = 3. This relationship, log_b(x) = y, is equivalent to b^y = x. Here, 'b' is the base, 'x' is the number (or argument), and 'y' is the logarithm itself. The base 'b' must always be a positive number and not equal to 1. The number 'x' must also always be positive. There are two special types of logarithms you'll often encounter: 1. **Common Logarithm:** This uses a base of 10. It's often written as 'log(x)' without a subscript, implying log₁₀(x). It's widely used in fields like chemistry (pH scale) and engineering. 2. **Natural Logarithm:** This uses the mathematical constant 'e' (approximately 2.71828) as its base. It's written as 'ln(x)' and is crucial in calculus, physics, and finance.

Formula

The fundamental relationship for logarithms is: log_b(x) = y <==> b^y = x Where:
* **b** is the base (b > 0, b ≠ 1)
* **x** is the number (x > 0)
* **y** is the logarithm (the exponent)

Worked example

Let's work through an example: Calculate log₅(125). Here, our base (b) is 5, and the number (x) is 125. We're asking: '5 to what power equals 125?' We know that: 5¹ = 5 5² = 25 5³ = 125 So, the answer is 3. Therefore, log₅(125) = 3. Our calculator would quickly give you this result.

How to use this tool

Using the ProMathTools Logarithm Calculator is simple. Just enter your values into the designated fields: 1. **Number (x):** Input the number for which you want to find the logarithm. For example, if you want log₂(8), you'd enter '8' here. 2. **Base (b):** Enter the base of your logarithm. For log₂(8), you'd enter '2'. If you need a natural logarithm (base 'e'), simply type 'e' into the base field. For a common logarithm (base 10), type '10'. The calculator will instantly display the logarithm, along with the equivalent exponential form, helping you verify your understanding.

Frequently asked questions

What is a logarithm?
A logarithm is the inverse operation to exponentiation. It tells you what power you need to raise a specific base to, to get a certain number. For example, log₂(8) = 3 because 2³ = 8.
What are common and natural logarithms?
A common logarithm has a base of 10 (log₁₀ or just 'log'). A natural logarithm has a base of 'e' (approximately 2.71828), written as 'ln'. These are frequently used in science and engineering.
Can I calculate the logarithm of a negative number or zero?
No, you cannot. The argument of a logarithm (the number 'x') must always be positive. This is because there's no real number power you can raise a positive base to that will result in a negative number or zero.
Why can't the base be 1?
If the base were 1, then 1 raised to any power is always 1. So, log₁(x) would only be defined if x=1, and even then, it would be undefined because any power works. To avoid this ambiguity and ensure a unique result, the base must not be 1.
How do logarithms apply in real life?
Logarithms are used in many real-world applications! They help measure earthquake intensity (Richter scale), sound loudness (decibels), acidity (pH scale), and even in finance for calculating compound interest and growth rates. They're also fundamental in computer science and signal processing.

Read the full guide →

About UsBlogChrome ExtensionFAQsTerms and ConditionsPrivacy PolicySitemap
EmailLinkedInFacebook

© 2025-2026 PromathTools. All rights reserved.

Built by KruskalCode – SaaS & Automation Experts · EverydayDevTools