Logarithms are everywhere. Ever use any of the following phrases?

- 6 figures
- Double digits
- Order of magnitude

You're describing numbers in terms of their powers of 10 -- a logarithm. Ever mention an interest rate or rate of return? It's the logarithm of your growth.

Surprised that logarithms are so common? Me too. Many attempts at Math In the Real World are attempts to point out logarithms in some arcane formula or pretending we're geologists fascinated by the Richter Scale. "Scientists care about logs, and you should too. Also, can you imagine a world without zinc?"

No, no, no, no no, no no! (Mama mia!)

Math expresses concepts with notation like "ln" or "log". Finding "math in the real world" means encountering ideas in life and seeing how they *could* be written with notation. Don't look for the literal symbols! When was the last time you wrote a division sign? When was the last time you chopped up some food?

## Ok, ok, we get it: what are logarithms about?

**Logarithms find the cause for an effect, i.e the input for some output**

A common "effect" is seeing something grow, like going from $100 to $150 in 5 years. How did this happen? We're not sure, but the logarithm finds a possible cause: A continuous return of ln(150/100) / 5 = 8.1% would account for that change. It might not be the actual cause (did all the growth happen in the final year?), but it's a smooth average we can compare to other changes.

By the way, the notion of "cause and effect" is nuanced. Why is 1000 bigger than 100?

- 100 is 10 which grew by itself for 2 time periods (10 · 10)
- 1000 is 10 which grew by itself for 3 time periods (10 · 10 · 10)

We can think of numbers as outputs (1000 is "1000 outputs") and inputs ("How many times does 10 need to grow to make those outputs?"). So,

because

Or in other words:

Why is this useful?

**Logarithms put numbers on a human-friendly scale.**

Large numbers break our brains. Millions and trillions are "really big" even though a million seconds is 12 days and a trillion seconds is 30,000 years. It's the difference between an American vacation year and the entirety of human civilization.

The trick to overcoming "huge number blindness" is to write numbers in terms of "inputs" (i.e. their power base 10). This smaller scale (0 to 100) is much easier to grasp:

- power of 0 = 10
^{0}= 1 (single item) - power of 1 = 10
^{1}= 10 - power of 3 = 10
^{3}= thousand - power of 6 = 10
^{6}= million - power of 9 = 10
^{9}= billion - power of 12 = 10
^{12}= trillion - power of 23 = 10
^{23}= number of molecules in a dozen grams of carbon - power of 80 = 10
^{80}= number of molecules in the universe

A 0 to 80 scale took us from a single item to the number of things in the universe. Not too shabby.

**Logarithms count multiplication as steps**

Logarithms describe changes in terms of multiplication: in the examples above, each step is 10x bigger. With the natural log, each step is "e" (2.71828...) times more.

When dealing with a series of multiplications, logarithms help "count" them, just like addition counts for us when effects are added.

## Show me the math

Time for the meat: let's see where logarithms show up!

**Six-figure salary or 2-digit expense**

We're describing numbers in terms of their digits, i.e. how many powers of 10 they have (are they in the tens, hundreds, thousands, ten-thousands, etc.). Adding a digit means "multiplying by 10", i.e.

Logarithms count the number of multiplications *added on*, so starting with 1 (a single digit) we add 5 more digits (10^{5}) and 100,000 get a 6-figure result. Talking about "6" instead of "One hundred thousand" is the essence of logarithms. It gives a rough sense of scale without jumping into details.

Bonus question: How would you describe 500,000? Saying "6 figure" is misleading because 6-figures often implies something closer to 100,000. Would "6.5 figure" work?

Not really. In our heads, 6.5 means "halfway" between 6 and 7 figures, but that's an adder's mindset. With logarithms a ".5" means halfway in terms of multiplication, i.e the square root (9^.5 means the square root of 9 -- 3 is halfway in terms of multiplication because it's 1 to 3 and 3 to 9).

Taking log(500,000) we get 5.7, add 1 for the extra digit, and we can say "500,000 is a 6.7 figure number". Try it out here:

**Order of magnitude**

We geeks love this phrase. It means roughly "10x difference" but just sounds cooler than "1 digit larger".

In computers, where everything is counted with bits (1 or 0), each bit has a doubling effect (not 10x). So going from 8 to 16 bits is "8 orders of magnitude" or 2^{8} = 256 times larger. (These bit sizes refers to the amount of memory available, not the processor speed). Going from 16 to 32 bits means 16 orders of magnitude, or 2^{16} ~ 65,536 times larger.

Isn't "16 extra bits of memory" better than "65,536 times more memory?".

**Interest Rates**

How do we figure out growth rates? A country doesn't intend to grow at 8.56% per year. You look at the GDP one year and the GDP the next, and take the logarithm to find the *implicit* growth rate.

My two favorite interpretations of the natural logarithm (ln(x)), i.e. the natural log of 1.5:

- Assuming 100% growth, how long do you need to grow to get to 1.5? (.405, less than half the time period)
- Assuming 1 unit of time, how fast do you need to grow to get to 1.5? (40.5% per year, continuously compounded)

Logarithms are how we figure out how fast we're growing.

**Measurement Scale: Google PageRank**

Google gives every page on the web a score (PageRank) which is a rough measure of authority / importance. This is a logarithmic scale, which in my head means "PageRank counts the number of digits in your score".

So, a site with pagerank 2 ("2 digits") is 10x more popular than a PageRank 1 site. My site is PageRank 5 and CNN has PageRank 9, so there's a difference of 4 orders of magnitude (10^{4} = 10,000).

Roughly speaking, I get about 7000 visits / day. Using my envelope math, I can guess CNN gets about 7000 * 10,000 = 70 million visits / day. (How'd I do that? In my head, I think 7k · 10k = 70 · k · k = 70 · M). They might have a few times more than that (100M, 200M) but probably not up to 700M.

Google conveys a lot of information with a very rough scale (1-10).

**Measurement Scale: Richter, Decibel, etc.**

Sigh. We're at the typical "logarithms in the real world" example: Richter scale and Decibel. The idea is to put events which can vary drastically (earthquakes) on a single 1 - 10 scale. Just like PageRank, each 1-point increase is a 10x improvement in power.

Decibels are similar, though it can be negative. Sounds can go from intensely quiet (pindrop) to extremely loud (airplane) and our brains can process it all. In reality, the sound of an airplane's engine is millions (billions, trillions) of times more powerful than a pindrop, and it's inconvenient to have a scale that goes from 1 to a gazillion. Logs keep everything on a reasonable scale.

**Logarithmic Graphs**

You'll often see items plotted on a "log scale". In my head, this means one side is counting "number of digits" or "number of multiplications", not the value itself. Again, this helps show wildly varying events on a single scale (going from 1 to 10, not 1 to billions).

Moore's law is a great example: we double the number of transistors every 18 months (image courtesy Wikipedia).

The neat thing about log-scale graphs is exponential changes (processor speed) appear as a straight line. Growing 10x per year means you're steadily marching up the "digits" scale.

## Onward and upward

If a concept is well-known but not well-loved, it means we need to build our intuition. Find the analogies that work, and don't settle for the slop a textbook will trot out. In my head:

- Logarithms find the root cause for an effect (see growth, find interest rate)
- They help count multiplications or digits, with the bonus of partial counts (500k is a 6.7 digit number)

Happy math.

I guess most of the people out there don’t even know what the notation log_2 8 means, and even less people know that the result is 3.

For newbies, a good introduction offers this youtube video (in German):

http://youtu.be/oDOXeO9fAg4

I actually got lost right at the beginning, unfortunately. It says that: ln(150/100) = 8.1%. How does one get the number 8.1%?

@Titus: Whoops, I had a typo there (forgot the / 5) and should clarify!

The natural log starts with some growth amount, and gives us the corresponding growth rate (if it happened in 1 period).

So, ln(150/100) = .405, which means “In one period, you can go from 100 to 150 with a 40.5% continuous growth rate”.

However, our growth happened in 5 periods, so we split up that 40.5% growth rate among 5 years: 40.5 / 5 ~ 8% each year.

Kalid, get out of my head! We JUST finished our logs unit, and as happens every year with logs, the kids were so fed up with them….. But they were also wondering why they had to learn about them – where in the real world does this come up? When I saw this, I immediately went to our brand new classblog site at http://learnmathclassblogs.blogspot.com/, and posted about your post. I hope this gets you some more comments, and I know your work will once again enlighten anyone who reads it. I love the human-friendly explanation of why we use logs – so simple, so true. I never even thought of that!

@Audrey: Haha, the coincidences keep popping up! :). Happy it was timely :).

You know, I’m realizing that there are lots of little examples where we use math but because it isn’t labeled as such, we miss it. Over time I’ll probably be adding to this article as new items sneak in!

@Audrey;

I don’t know who told you we were fed up with logs! It was quite a fascinating unit and I’ve learned a lot from it. I haven’t mastered it, obviously, but I now understand the basic concept. Thanks Miss and thanks Kalid for the slightly different overview of logs!

@Joey: Thanks for the comment — glad it came in handy :).

Another great post Kalid!. Here is a YouTube video that shows the powers of 10. By using order of magnitude you are taken to the edge of the universe and back to a single atom.

Talk about change in perspective!

http://www.youtube.com/watch?v=0fKBhvDjuy0

How about showing the effects of negative numbers in the power?

@Shiv: Thanks, I love that video :). Negative numbers are an interesting topic too. A lot of stereo systems show the decibel reading (-10, -20, etc.) and this is an attenuation from the max level (0 = no attenuation, i.e. no decrease in signal).

Hi Kalid,

Been a long time. I thought I’d share this little analogy since it seems apros. When thinking of large numbers, I was reminded of the Piranaha Tribe in South America whose number system seems to only go up to 2. Everything else is just “a lot”. That’s how we are…just on a different scale. 1 billion… 1 trillion… what’s the difference? They’re both just bigger than 2

Sebastian

@Sebastian: Long time! Love it — we have arbitrary distinctions of what “large” means :).

This is very informative and should help to show some people that whether you like it or not, maths is everywhere and you can not hide from it.

Incidentally I done a post proving and explaining some of the laws of logarithms: http://www.eloquentmath.com/2012/03/logarithms.html

Very tactful Simpsons reference. That’s it – I’m making this my homepage

@Paul: Nice, glad you enjoyed the reference

I have enjoyed looking around your site. I can here to see what you had to say on the Rule of 72 and feel it is accessible to high school students (which is what I wanted). While here I looked up what you had to say about logs, and to my surprise you don’t mention John Napier (especially since you said you always wondered what the definition of e was). At any rate I believe Napier to be one of the least respected mathematicians, yet he gave us logs and e (and Napier’s Bones) for very practical reasons. Look him up. And thanks for this site. I will send my students here often.

When I was educated in the early seventies we were told we’d need to provide a slide rule, I remember it didn’t get much use. Found it yesterday in a drawer I was clearing out.

You have not only educated me in a way I didn’t dream of in my teens but renewed an interest in old technology, I’d seen a film documentary which showed a navigator in a Lancaster bomber using one on a night raid over Germany, no doubt calculating time to the next way point.

I’ve worked in IT since 1985 and seen enormous advances in technology, but am amazed at what this gadget can do.

cheers

Martin

Your work is TOPS!

I suggest this post and the 2 on the natural log from 2007 be on an easy-use button on your homepage. Also, can you tell me if all logarithms are in scales of 10? Can they be represented in powers related to squares? So that we can figure the log for 5*7 within the powers of 6 (6*1, 6*6, etc.)?

Hi Clare, glad you liked it! I’d like to make some “getting started” guides for the site, thanks for the suggestion.

Most logarithms are in terms of base 10 (since our regular numbers use that) or base e (since that appears most often in nature). However, you can use any base you wish — programmers often count by twos, so base 2 (or base 8, or base 16) is often used. It comes down to using a convenient number for the types of problems at hand (so base 6 is definitely possible… base 60 is how we count seconds and minutes, for example).

Hi there, thank you for your page. I have one question:

I take the log of my data and do some calculations with it afterwards (e.g. comparing changes from one year to the other etc.). I use The final results fpr my regression and get no significant results.

If I take the exp after having done my calculations and plug in these new values in my regression I get significant results. I wonder why? Is there any mathematical reason for why the chances of getting significant results with exponents (or having taken exponents after having taken the log) is higher?

Would it make sense to say that taking the exponent from a logged value is like broadening the distances between the values agai and by this – like lense – making them more visible?

Tom

Hi Tom, neat question. I’d have to see the data to make a more specific analysis, but in general, taking exponents (e^x) will expand / broaden the distances between data. This can make gaps more apparent. [Similarly, taking logarithms “shrinks” data onto a smaller scale].

hey there…. your page has been very informative… i had this project about logarithms which i had to complete in less than a week and your page came in handy… honestly i got most of the info from your post… keep up the good work and thanks again!!!

Thanks Charl!

is that the practical applications of logarithm in real life? pardon me. this is part of our project and i’m having trouble with it. if you’re not busy,can you help me? i need 10 practical applications/real life applications of logarithms. thanks a lot.

thanks for the information about logarithm .keep up

How is logarithm used irl? My teacher is offering to boost anyone up an entire letter grade if someone can find how it is used in irl situations.

Very good

Hey kalid, thanks for this entire site in general – I’m a huge fan of your work. Your conception of taking e as a scaled version of the final growth product and ln as the amount of time has helped tremendously – on an intuitive level, how do these metaphors intuit the law that says the log of a power of a number is the exponent times the logarithm of the number? This is one of those rules that I memorized in high school, but i’m having a hard time seeing it with the metaphors that you have offered.

Thanks again!

Hey Alex, really glad it’s helping. Check out http://betterexplained.com/articles/demystifying-the-natural-logarithm-ln/ for more discussion on the laws of logs and how multiplication/powers work.

At its heart, something like 3^4 means “take 3x growth, then wait and grow 3x again, then wait and grow 3x again, then wait and grow 3x again.”

How long should that entire process take? If the time to grow a single 3x is log(3), then the time to grow 3x four times should be:

log(3) + log(3) + log(3) + log(3) = 4 * log(3)

And we can check our intuition and see that log(3^4) = 4 * log(3). Check out the post for more details/examples.

Hey Khalid,

I must say you have some great work here! They ease with which you explain these topics quite astound me.

I do have a rather silly question, though. In your 6-Figure numbers example, the log of 500,000 comes to 5.7. Why did you add the extra 1?

Hi Tanvi, great question, glad you’re enjoying it :).

Logarithms count the number of multiplications needed to reach a number from a certain base (like 10).

For example, to get from 1 to 100 in base 10, we need two multiplications: 1 x 10 x 10 = 100.

However, the number of digits in 100 is clearly 3.

This difference (number of multiplications vs. number of digits) means the digit count is different from the logarithm.

The reason for this difference: we start with a single digit (1) and each multiplication by 10 gives us another digit. The logarithm is a count of the “extra multiplications we added in” but not our starting point.

When looking at 500,000, we can say the logarithm is 5.7. But how many digits does it have? Six — and I’d even describe it as a “6.7” digit number to distinguish it from a number like 100,000 which is *exactly* 6 digits.

Oh I got it now. Thanks Khalid.

Hi Kalid,

Enjoyed this very informative post. Can you also write about electricity voltage, current etc.

Nilesh Joglekar

Forty years after my last maths lesson, I now find I have to get up to speed on logarithms. Excellent post, clear and well written, it brought it all back to me in a few minutes.

Thanks David, happy to hear it clicked.

100 increases to $150 in 5 years. What is the yearly interest rate? I got 5√150/100=8.45%. and when working it out logically, that’s the right answer. How did you get ln (150/100) /5=8.12%?

Thanks for this post. I’m trying to understand how Moz Domain Authority (DA) works. They say DA is measured on a 100-point logarithmic scale.

Does that mean DA30 is 10x more powerful than DA20?

OR

Is DA21 10x more powerful than DA20, and DA30 would then be… 10^10x (100 million times)?

OR

Is it base-2 not base-10 and DA21 is 2x more powerful than DA20, but DA30 would be 1024x more powerful than DA20….

Help?!?!

Thanks,

Josh

@Andrew: Great question. 8.45% is the yearly interest rate, assuming we compound every year. 8.12% is the yearly interest rate if we assume we can compound continuously.

If we compound continuously, we’ll end up with 8.45% at the end of each, but an individual dollar only expects to gain 8.12%. It’s the “interest that interest years” that boosts the rate up to 8.45%. e and natural log deal with the perspective of what an individual dollar thinks it is earning. There’s more here: http://betterexplained.com/articles/think-with-exponents/

@Josh: Good question. 100-point logarithmic scale could be setup in any way, but I’m assuming they mean base 10, and that every 10 points means 10x more powerful.

(Having every point be 10x more powerful isn’t necessary, since 10^100, the max of the scale, is an enormous number. Also, having a base 2 scale isn’t that human friendly.)

In this case, every 10 points would be a 10x increase in importance (10, 20, 30, 40, 50) would be (10, 100, 1000, 10k, 100k).

Just my guess but that’s similar to how page rank works (except it’s a 1-10 scale vs 1 to 100, so 1, 2, 3, 4, 5 is 10, 100, 1000, 10k, 100k).

logerthems are very tuff