If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Intro to Logarithms

Learn what logarithms are and how to evaluate them. 

What you should be familiar with before taking this lesson

You should be familiar with exponents, preferably including negative exponents.

What you will learn in this lesson

You will learn what logarithms are, and evaluate some basic logarithms. This will prepare you for future work with logarithm expressions and functions.

What is a logarithm?

Logarithms are another way of thinking about exponents.
For example, we know that 2 raised to the 4th power equals 16. This is expressed by the exponential equation 24=16.
Now, suppose someone asked us, "2 raised to which power equals 16?" The answer would be 4. This is expressed by the logarithmic equation log2(16)=4, read as "log base two of sixteen is four".
24=16log2(16)=4
Both equations describe the same relationship between the numbers 2, 4, and 16, where 2 is the base and 4 is the exponent.
The difference is that while the exponential form isolates the power, 16, the logarithmic form isolates the exponent, 4.
Here are more examples of equivalent logarithmic and exponential equations.
Logarithmic formExponential form
log2(8)=323=8
log3(81)=434=81
log5(25)=252=25

Definition of a logarithm

Generalizing the examples above leads us to the formal definition of a logarithm.
logb(a)=cbc=a
Both equations describe the same relationship between a, b, and c:
  • b is the base,
  • c is the exponent, and
  • a is called the argument.

A helpful note

When rewriting an exponential equation in log form or a log equation in exponential form, it is helpful to remember that the base of the logarithm is the same as the base of the exponent.

Check your understanding

In the following problems, you will convert between exponential and logarithmic forms of equations.
Problem 1
Which of the following is equivalent to 25=32?
صرف 1 جواب چنو

Problem 2
Which of the following is equivalent to 53=125?
صرف 1 جواب چنو

Problem 3
Write log2(64)=6 in exponential form.

Problem 4
4) Write log4(16)=2 in exponential form.

Evaluating logarithms

Great! Now that we understand the relationship between exponents and logarithms, let's see if we can evaluate logarithms.
For example, let's evaluate log4(64).
Let's start by setting that expression equal to x.
log4(64)=x
Writing this as an exponential equation gives us the following:
4x=64
4 to what power is 64? Well, 43=64 and so log4(64)=3.
As you become more practiced, you may find yourself condensing a few of these steps and evaluating log4(64) just by asking, "4 to what power is 64?"

Check your understanding

Remember, when evaluating logb(a), you can ask: "b to what power is a?"
Problem 5
log6(36)=
  • Your answer should be
  • an integer, like 6
  • a simplified proper fraction, like 3/5
  • a simplified improper fraction, like 7/4
  • a mixed number, like 1 3/4
  • an exact decimal, like 0.75
  • a multiple of pi, like 12 pi or 2/3 pi

Problem 6
log3(27)=
  • Your answer should be
  • an integer, like 6
  • a simplified proper fraction, like 3/5
  • a simplified improper fraction, like 7/4
  • a mixed number, like 1 3/4
  • an exact decimal, like 0.75
  • a multiple of pi, like 12 pi or 2/3 pi

Problem 7
log4(4)=
  • Your answer should be
  • an integer, like 6
  • a simplified proper fraction, like 3/5
  • a simplified improper fraction, like 7/4
  • a mixed number, like 1 3/4
  • an exact decimal, like 0.75
  • a multiple of pi, like 12 pi or 2/3 pi

Problem 8
log5(1)=
  • Your answer should be
  • an integer, like 6
  • a simplified proper fraction, like 3/5
  • a simplified improper fraction, like 7/4
  • a mixed number, like 1 3/4
  • an exact decimal, like 0.75
  • a multiple of pi, like 12 pi or 2/3 pi

Challenge problem
log3(19)=
  • Your answer should be
  • an integer, like 6
  • a simplified proper fraction, like 3/5
  • a simplified improper fraction, like 7/4
  • a mixed number, like 1 3/4
  • an exact decimal, like 0.75
  • a multiple of pi, like 12 pi or 2/3 pi

Restrictions on the variables

logb(a) is defined when the base b is positive—and not equal to 1—and the argument a is positive. These restrictions are a result of the connection between logarithms and exponents.
RestrictionReasoning
b>0In an exponential function, the base b is always defined to be positive.
a>0logb(a)=c means that bc=a. Because a positive number raised to any power is positive, meaning bc>0, it follows that a>0.
b1Suppose, for a moment, that b could be 1. Now consider the equation log1(3)=x. The equivalent exponential form would be 1x=3. But this can never be true since 1 to any power is always 1. So, it follows that b1.

Special logarithms

While the base of a logarithm can have many different values, there are two bases that are used more often than others.
Specifically, most calculators have buttons for only these two types of logarithms. Let's check them out.

The common logarithm

The common logarithm is a logarithm whose base is 10 ("base-10 logarithm").
When writing these logarithms mathematically, we omit the base. It is understood to be 10.
log10(x)=log(x)

The natural logarithm

The natural logarithm is a logarithm whose base is the number e ("base-e logarithm").
Instead of writing the base as e, we indicate the logarithm with ln.
loge(x)=ln(x)
This table summarizes what we need to know about these two special logarithms:
NameBaseRegular notationSpecial notation
Common logarithm10log10(x)log(x)
Natural logarithmeloge(x)ln(x)
While the notation is different, the idea behind evaluating the logarithm is exactly the same!

Why are we studying logarithms?

As you just learned, logarithms reverse exponents. For this reason, they are very helpful for solving exponential equations.
For example the result for 2x=5 can be given as a logarithm, x=log2(5). You will learn how to evaluate this logarithmic expression over the following lessons.
Logarithmic expressions and functions also turn out to be very interesting by themselves, and are actually very common in the world around us. For example, many physical phenomena are measured with logarithmic scales.

What's next?

Learn about the properties of logarithms that help us rewrite logarithmic expressions, and about the change of base rule that allows us to evaluate any logarithm we want using the calculator.