ThisCalculator

Everyday

Log Curve Calculator: Formula and Worked Example

Updated · Standard formula, shown below

Logarithm value 2.0000
Base raised to result
100.0000
Result
Number
100
You entered
Base
10
You entered

Log Curve Calculator: Formula and Worked Example

A log curve calculator evaluates a logarithmic function, typically finding a value such as log₁₀(x), ln(x), or logₐ(x). Enter the positive number and the logarithm’s base; the calculator returns the exponent that base must be raised to in order to produce the number.

Formula

The logarithm of x to base b is the exponent y such that b raised to y equals x:

y = logb(x) = ln(x) / ln(b)

  • x is the positive input number; it has no unit in this calculator.
  • b is the logarithm base. It must be positive and must not equal 1.
  • y is the logarithm, or exponent, and is dimensionless.
  • ln means the natural logarithm, whose base is the mathematical constant e, approximately 2.71828.

The calculator uses the change-of-base identity because the available logarithm function is the natural logarithm. Its second result, by, reverses the calculation as a check; rounding means that value may be displayed approximately.

Worked Example

Using the default inputs x = 100 and b = 10:

  1. Apply the change-of-base formula: y = ln(100) / ln(10).
  2. Since ln(100) is about 4.605170 and ln(10) is about 2.302585, y = 2.
  3. To check, calculate 102 = 100.

The calculator displays a logarithm value of 2.0000 and a check value of 100.0000.

What a Logarithm Means

A logarithm answers an exponent question. For example, log10(100) = 2 because 102 = 100. Likewise, log2(8) = 3 because 23 = 8. This relationship makes logarithms the inverse operation of exponentiation, just as subtraction reverses addition.

Common bases have familiar names and uses:

  • Base 10: The common logarithm, often written log(x) in school mathematics and many scientific settings. For example, log10(1000) = 3.
  • Base e: The natural logarithm, written ln(x). It appears frequently in calculus, continuous growth and decay, and equations involving exponential functions.
  • Base 2: Often used in computing and information theory. For example, log2(32) = 5.

Notation is not perfectly uniform across every subject or calculator: “log” may mean base 10 in one context and the natural logarithm in another. Check the stated convention, or specify the base explicitly.

How to Use the Calculator

Enter x as a positive number and b as a positive base other than 1. The first output is logb(x); the second raises the chosen base to that result so you can see whether it returns the original input.

For instance, to find log2(8), enter 8 for the number and 2 for the base. The result is 3, because 23 = 8. To find a natural logarithm, enter e as the base if the input accepts it numerically, or use a calculator’s dedicated ln function; e is approximately 2.718281828.

The calculator accepts decimal inputs as well as integers. For example, log10(2) is approximately 0.3010, since 100.3010 is approximately 2. A result need not be a whole number.

Domain, Signs, and Common Mistakes

For real-valued logarithms, the argument x must be greater than zero. Zero and negative inputs do not have real logarithms. The base must also be positive and different from 1: a base of 1 cannot distinguish exponents because 1 raised to any power remains 1.

  • Confusing the argument and base: log2(8) asks what power of 2 makes 8, so the answer is 3—not 8 raised to the second power.
  • Assuming every “log” has the same base: Identify whether a problem means base 10, base e, base 2, or another base.
  • Rounding too early: Keep extra digits during intermediate calculations and round the final answer to the precision you need.
  • Entering an invalid base: A base of 0, a negative base, or 1 is not valid for this real-number calculation.

Logarithms can be negative when the input lies between 0 and 1. For example, log10(0.1) = −1 because 10−1 = 0.1. A negative result is not an error; it describes a negative exponent.

Limits and Useful Log Rules

This calculator returns a numerical result for a single real logarithm. It does not simplify symbolic expressions, solve equations with multiple unknowns, or calculate complex logarithms. If a problem uses a measurement, such as length or time, logarithms generally require a dimensionless argument; the relevant scale or reference value must be handled according to the problem’s definition.

Three identities help check or simplify many calculations, provided the logarithms have valid positive arguments and consistent bases:

  • Product: logb(mn) = logb(m) + logb(n).
  • Quotient: logb(m/n) = logb(m) − logb(n).
  • Power: logb(mr) = r logb(m), for positive m.

These rules do not allow a logarithm to be distributed over addition: logb(m + n) is generally not equal to logb(m) + logb(n).

Frequently Asked Questions

How do I calculate a log without a log button?
Use the change-of-base formula: logb(x) = ln(x) / ln(b), or use log(x) / log(b) if both calls use the same base. The calculator applies the natural-log version.

What is the difference between log and ln?
ln conventionally means logarithm base e. In many math and science contexts, log means base 10, but conventions differ, so check the notation used in your problem.

Can a logarithm be negative?
Yes. If 0 < x < 1 and the base is greater than 1, the logarithm is negative. For example, log10(0.01) = −2 because 10−2 = 0.01.

Why can’t I take the log of zero or a negative number?
No real exponent of a positive base produces zero or a negative result. Their logarithms are therefore not defined as real numbers.

What is log base 1?
It is undefined. Since 1 raised to every real power equals 1, there is no unique exponent that can represent a general input.

Related

Formula used
in x | Number | - | 100 | 0
in b | Base | - | 10 | 0
out y | Logarithm value | - | ln(x) / ln(b) | 4
out check | Base raised to result | - | b ^ y | 4

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.