Logarithm Calculator
Calculate logarithms with different bases
Result
The calculated logarithm value
Enter a value and click "Calculate" to see the result
Instructions:
- Value must be greater than 0
- Base must be greater than 0 and not equal to 1
- Natural log: ln(x) = logₑ(x)
- Common log: log₁₀(x)
- Custom base: logₐ(x)
About Logarithms
A logarithm is the inverse operation to exponentiation. If bᵖ = x, then logᵦ(x) = p.
log₁₀(x) = ln(x) / ln(10)
ln(x) = logₑ(x)
logₐ(b) = logₓ(b) / logₓ(a)
About This Calculator
Logarithm Calculator
Calculate logarithms in any base instantly with our free online calculator. Support for natural logarithm (ln), common logarithm (log₁₀), and logarithms in any base with detailed explanations.
Calculate Logarithm
Calculate:
- log(x) - Common logarithm (base 10)
- ln(x) - Natural logarithm (base e)
- log_b(x) - Logarithm with custom base
Number (x): [Input field]
Base (b): [Dropdown: 2, e, 10, or custom]
[Calculate Button]
Results:
- Logarithm Value: [Result]
- Exponential Form: [Show equivalent]
- Step-by-Step: [Expand/Collapse]
What is a Logarithm?
A logarithm is the power to which a number (the base) must be raised to produce a given number. In simple terms, logarithms answer the question: "To what power must I raise this base to get that number?"
Basic Definition
If b^y = x Then log_b(x) = y
Example:
2³ = 8
Therefore: log₂(8) = 3
This means: "The power to which 2 must be raised to get 8 is 3"
Why Logarithms Matter
- Solving Exponential Equations: Makes complex calculations easier
- Measuring Scales: pH, Richter scale, decibels
- Scientific Applications: Radioactive decay, population growth
- Computer Science: Algorithm complexity analysis
- Finance: Compound interest calculations
Types of Logarithms
1. Common Logarithm (log₁₀)
Base: 10 Notation: log(x) or log₁₀(x) Common in: Engineering, general calculations
Examples:
log(10) = 1 (because 10¹ = 10)
log(100) = 2 (because 10² = 100)
log(1000) = 3 (because 10³ = 1000)
log(1) = 0 (because 10⁰ = 1)
2. Natural Logarithm (ln)
Base: e (Euler's number ≈ 2.71828) Notation: ln(x) or log_e(x) Common in: Higher mathematics, calculus, physics
Value of e:
e ≈ 2.718281828459045
Examples:
ln(e) = 1
ln(e²) = 2
ln(1) = 0
ln(10) ≈ 2.302585
3. Binary Logarithm (log₂)
Base: 2 Notation: log₂(x) or lb(x) Common in: Computer science, information theory
Examples:
log₂(2) = 1
log₂(4) = 2
log₂(8) = 3
log₂(16) = 4
log₂(1024) = 10
4. Custom Base Logarithms
Notation: log_b(x) Any base: b > 0, b ≠ 1
Example:
log₃(27) = 3 (because 3³ = 27)
log₅(125) = 3 (because 5³ = 125)
How to Calculate Logarithms
Method 1: Using Known Values
Example: Calculate log₂(32)
Solution:
Find power: 2^x = 32
2⁵ = 32
Therefore: log₂(32) = 5
Method 2: Change of Base Formula
Formula:
log_b(x) = log_a(x) / log_a(b)
Most common (using base 10 or e):
log_b(x) = log(x) / log(b)
or
log_b(x) = ln(x) / ln(b)
Example: Calculate log₅(100)
Using base 10:
log₅(100) = log(100) / log(5)
= 2 / 0.69897
≈ 2.861
Using natural log:
log₅(100) = ln(100) / ln(5)
= 4.60517 / 1.60944
≈ 2.861
Method 3: Using Calculator Functions
On most calculators:
- log → Common logarithm (base 10)
- ln → Natural logarithm (base e)
- For other bases → Use change of base formula
Logarithm Properties and Rules
1. Product Rule
Rule: log_b(xy) = log_b(x) + log_b(y)
Example:
log₂(16) = log₂(4 × 4)
= log₂(4) + log₂(4)
= 2 + 2
= 4
2. Quotient Rule
Rule: log_b(x/y) = log_b(x) - log_b(y)
Example:
log₂(4) = log₂(32/8)
= log₂(32) - log₂(8)
= 5 - 3
= 2
3. Power Rule
Rule: log_b(xⁿ) = n · log_b(x)
Example:
log₂(32) = log₂(2⁵)
= 5 · log₂(2)
= 5 · 1
= 5
4. Change of Base Rule
Rule: log_b(x) = log_a(x) / log_a(b)
Example:
log₃(81) = log(81) / log(3)
= 1.90849 / 0.47712
= 4
5. Identity Rules
log_b(b) = 1
log_b(1) = 0
log_b(bⁿ) = n
b^(log_b(x)) = x
Common Logarithm Values
Powers of 2 (Base 2)
log₂(2) = 1
log₂(4) = 2
log₂(8) = 3
log₂(16) = 4
log₂(32) = 5
log₂(64) = 6
log₂(128) = 7
log₂(256) = 8
log₂(512) = 9
log₂(1024) = 10
Powers of 10 (Base 10)
log(0.1) = -1
log(1) = 0
log(10) = 1
log(100) = 2
log(1000) = 3
log(10000) = 4
Natural Log Values (Base e)
ln(1) = 0
ln(e) = 1
ln(e²) = 2
ln(10) ≈ 2.302585
ln(100) ≈ 4.605170
Real-World Applications
1. pH Scale (Chemistry)
Formula: pH = -log[H⁺]
Example: If [H⁺] = 10⁻⁷ M
pH = -log(10⁻⁷) = 7
pH Scale:
- 0-3: Strong acid
- 4-6: Weak acid
- 7: Neutral
- 8-10: Weak base
- 11-14: Strong base
2. Richter Scale (Earthquakes)
Formula: M = log(I/I₀)
Example: Earthquake with intensity 10,000 times reference
M = log(10000) = 4
Scale:
- Each whole number increase = 10× stronger
- M=4 is 10× stronger than M=3
- M=5 is 100× stronger than M=3
3. Decibels (Sound)
Formula: dB = 10 · log(P/P₀)
Example: Sound 1000× reference power
dB = 10 · log(1000) = 30 dB
4. Compound Interest (Finance)
Time to double:
t = ln(2) / ln(1 + r)
Example: 8% annual rate
t = ln(2) / ln(1.08) ≈ 9 years
5. Population Growth (Biology)
Formula: P(t) = P₀ · e^(rt) Solving for time:
t = ln(P/P₀) / r
6. Algorithm Complexity (Computer Science)
Binary search: O(log₂(n))
Example: Searching 1024 elements
log₂(1024) = 10 comparisons
Solving Logarithmic Equations
Example 1: Basic Equation
Solve: log₂(x) = 5
Solution:
2⁵ = x
x = 32
Example 2: Using Product Rule
Solve: log₃(x) + log₃(9) = 4
Solution:
log₃(9x) = 4
3⁴ = 9x
81 = 9x
x = 9
Example 3: Using Quotient Rule
Solve: log₅(x/25) = 2
Solution:
5² = x/25
25 = x/25
x = 625
Example 4: Using Power Rule
Solve: 2 · log(x) = 4
Solution:
log(x²) = 4
10⁴ = x²
10000 = x²
x = 100
Natural Logarithm (ln) Special Properties
Euler's Number (e)
Definition:
e = lim(n→∞) (1 + 1/n)ⁿ
e ≈ 2.718281828459045
Series expansion:
e = 1 + 1/1! + 1/2! + 1/3! + ...
Derivative and Integral
d/dx[ln(x)] = 1/x
∫(1/x)dx = ln|x| + C
Exponential Growth/Decay
Formula: A(t) = A₀ · e^(kt)
Example: Bacteria doubling every hour
A(t) = A₀ · e^(ln(2)·t)
A(t) = A₀ · 2ᵗ
Antilogarithm (Inverse Operation)
Definition: If y = log_b(x), then x = b^y
Example:
log₂(8) = 3
Antilog: 2³ = 8
Calculator functions:
- For base 10: Use 10^x button
- For base e: Use e^x button
- For other bases: b^x
Graphing Logarithms
General Shape
- Passes through (1, 0)
- Vertical asymptote at x = 0
- Increases slowly to the right
- Domain: x > 0
- Range: All real numbers
Comparison by Base
log₂(x) grows fastest
log₁₀(x) grows slowest
ln(x) is in between
Tips and Tricks
Quick Calculations
- Know common values: log(10) = 1, log(100) = 2
- Use change of base: For non-standard bases
- Estimate first: Rough approximation helps catch errors
- Check your answer: b^(log_b(x)) should equal x
Common Mistakes to Avoid
- Wrong base: Always check the logarithm base
- Domain error: log(x) requires x > 0
- Confusing log and ln: Different bases (10 vs e)
- Power rule misapplication: log(x+y) ≠ log(x) + log(y)
When to Use Which Log
| Logarithm | Best For |
|---|---|
| log₁₀ | General calculations, engineering |
| ln | Calculus, continuous growth, advanced math |
| log₂ | Computer science, algorithms |
| log_b | Specific problems requiring custom base |
What is a logarithm in simple terms?
A logarithm answers "what power" you need to raise a base number to get another number. If 2³ = 8, then log₂(8) = 3.
What's the difference between log and ln?
"log" (without base) usually means base 10 (common logarithm), while "ln" means base e (natural logarithm, where e ≈ 2.71828).
How do I calculate log without a calculator?
For simple cases, express the number as a power of the base. For complex cases, use logarithm properties or a calculator.
Why is e special in logarithms?
e (≈ 2.71828) appears naturally in continuous growth/decay processes. ln(x) is the natural logarithm because it relates to these natural processes.
Can you take the log of a negative number?
No, logarithms are only defined for positive real numbers. log(x) requires x > 0.
What does log(0) equal?
log(0) is undefined (approaches negative infinity). You can't raise any positive base to a power to get zero.
How do I solve exponential equations using logs?
Take the log of both sides and use the power rule. Example: 2^x = 10 x · log(2) = log(10) x = log(10)/log(2) ≈ 3.3219
What is the change of base formula?
log_b(x) = log_a(x) / log_a(b) This lets you calculate logs in any base using base 10 or e.
How are logarithms used in real life?
Logarithms measure pH (acidity), earthquake intensity (Richter scale), sound intensity (decibels), and model population growth, radioactive decay, and compound interest.
What is antilogarithm?
Antilogarithm is the inverse operation. If y = log_b(x), then x is the antilogarithm of y, meaning x = b^y.
How do logarithms relate to exponents?
Logarithms and exponents are inverse operations. If b^y = x, then log_b(x) = y.
Why do we need different bases?
Different bases are convenient for different applications: base 10 for general math, base e for calculus and continuous processes, base 2 for computer science.
Practice Problems
Beginner Level
- log₂(8) = ?
- log₁₀(100) = ?
- ln(e³) = ?
- log₅(25) = ?
- log₃(27) = ?
Intermediate Level
- Evaluate: log₂(16) + log₂(8)
- Solve: log₃(x) = 4
- Evaluate: log₁₀(1000) - log₁₀(100)
- Solve: 2 · ln(x) = 6
- Calculate: log₅(125) using change of base
Advanced Level
- Solve: log₂(x) + log₂(x-2) = 3
- Find x if: log(x) + log(x+3) = 1
- Solve for x: 2^x = 50 (use logarithms)
- Evaluate: (log₂(32))² - log₃(81)
- How long to double at 6% interest?
Answers: [Click to reveal]
- Beginner: 3, 2, 3, 2, 3
- Intermediate: 7, 81, 1, e³, 3
- Advanced: 4, 2, ≈5.64, 7, ≈11.9 years
Related Calculators
- Exponent Calculator
- Scientific Calculator
- Square Root Calculator
- Percentage Calculator
- Factor Calculator
Need Help? Our logarithm calculator is perfect for students, engineers, and scientists. Try it now for instant, accurate results!
Frequently Asked Questions
Related Math Calculators
Scientific Calculator - Free Online Scientific Calculator
Comprehensive scientific calculator with trigonometry, logarithms, exponents, statistics, and more. Free online scientific calculator for students, engineers, and professionals.
GPA Calculator - Calculate High School & College GPA
Calculate your GPA instantly. Support for weighted and unweighted GPA. Multiple courses, cumulative GPA, and grade tracking.
Grade Calculator - Calculate Your Final Grade
Calculate your final grade with our free grade calculator. Determine what you need on your final exam to achieve your desired course grade.
Password Generator - Generate Strong Secure Passwords
Generate secure random passwords instantly. Customizable length, characters, and strength. Copy to clipboard. Free password generator.
Percentage Calculator - Calculate Percentages Instantly
Free online percentage calculator. Calculate percentage increase, decrease, difference and more. Fast, accurate results for all your percentage calculations.
Random Number Generator - Generate Random Numbers Online
Free random number generator. Generate random numbers within a custom range. Choose quantity, unique numbers, and sorting options. No download required.
LCM Calculator - Least Common Multiple
Calculate the least common multiple of two or more numbers.
Mixed Number Calculator - Convert Between Fractions and Mixed Numbers
Convert between improper fractions and mixed numbers.
T-Test Calculator - Statistical Significance Test
Perform a t-test to compare means of two samples.
Mean Calculator - Calculate Arithmetic Mean
Calculate the arithmetic mean (average) of any dataset. Enter comma-separated numbers and get instant results with sum, count, and mean.
Median Calculator - Find the Middle Value
Calculate the median (middle value) of any dataset. Enter comma-separated numbers and get instant results with sorted data and median.
Mode Calculator - Find Most Frequent Value
Calculate the mode (most frequent value) of any dataset. Enter comma-separated numbers and find which values occur most often with frequency counts.
Range Calculator - Calculate Data Range & Spread
Calculate the range (max - min) of any dataset. Find minimum, maximum, range, and midrange with sorted data display.
Sum Calculator - Add Multiple Numbers
Calculate the sum of multiple numbers instantly. Add comma-separated values, see running totals, partial sums, and average.
Product Calculator - Multiply Multiple Numbers
Calculate the product of multiple numbers instantly. Multiply comma-separated values with step-by-step breakdown.
Decimal to Fraction Calculator - Convert Decimals to Fractions
Convert any decimal number to a fraction in simplest form. Get improper fractions, mixed numbers, and percentage equivalents.
Concrete Calculator - Calculate Concrete Volume
Calculate concrete volume for slabs, footings, columns, and tubes. Get accurate estimates in cubic yards, cubic meters, and bags needed.
Paint Calculator - Calculate Paint & Primer
Calculate paint and primer needed for interior and exterior projects. Estimate gallons, coats, and costs for walls, ceilings, and trim.