Skip to content

Logarithm rules

Use the product, quotient and power laws with the right domains, and distinguish adding log returns through time from combining assets in a portfolio.

Logarithm rules turn multiplication into addition, division into subtraction, and powers into multiplication. They explain why consecutive investment growth factors can be added after taking logarithms. They do not turn every financial calculation into an additive one.

For a real base b>0b>0, b≠1b\ne1, positive arguments x,y>0x,y>0, and any real exponent kk:

Operation inside the logarithmEquivalent expressionRule
log⁡b(xy)\log_b(xy)log⁡bx+log⁡by\log_b x+\log_b yProduct
log⁡b(x/y)\log_b(x/y)log⁡bx−log⁡by\log_b x-\log_b yQuotient
log⁡b(xk)\log_b(x^k)klog⁡bxk\log_b xPower
All logarithms in each identity use the same base. The laws also hold when 0<b<10<b<1. For the natural logarithm, simply replace log⁡b\log_b with ln⁡\ln.
Why does the product rule work? Set u=log⁡bxu=\log_b x and v=log⁡byv=\log_b y. Then x=bux=b^u, y=bvy=b^v, and xy=bu+vxy=b^{u+v}. Taking the logarithm returns u+vu+v. The quotient and power laws follow from the corresponding exponent laws. To convert a logarithm's base, use change of logarithm base, rather than mixing bases within these identities.

What adds through time

Consider a hypothetical holding worth USD 100. It gains 10% in the first period and loses 10% in the second, with no distributions, deposits, withdrawals or trading costs. Its successive values are USD 100, USD 110 and USD 99:

99100=1.1×0.9=0.99.\frac{99}{100}=1.1\times0.9=0.99.

The product law gives the cumulative log return:

ln⁡(1.1)+ln⁡(0.9)=ln⁡(0.99)≈−0.010050.\ln(1.1)+\ln(0.9) =\ln(0.99)\approx-0.010050.

The exact identity holds before rounding. The simple return is 0.99−1=−1%0.99-1=-1\%; the cumulative log return is approximately −1.0050%-1.0050\%. The two 10% moves do not cancel because the loss acts on a larger starting value.

More generally, consecutive positive prices telescope:

∑t=1nln⁡(StSt−1)=ln⁡(∏t=1nStSt−1)=ln⁡(SnS0).\sum_{t=1}^{n}\ln\left(\frac{S_t}{S_{t-1}}\right) =\ln\left(\prod_{t=1}^{n}\frac{S_t}{S_{t-1}}\right) =\ln\left(\frac{S_n}{S_0}\right).

This is a pathwise algebra identity: it does not need independent returns or a probability model. Prices alone measure price returns; distributions require a consistently reinvested total-return series or explicit cash-flow treatment. Zero or negative values cannot be used as arguments of a real logarithm.

Hypothetical consecutive moves take USD 100 to USD 110 to USD 99, a log return of negative 0.010050. Simultaneous equal USD 50 holdings moving plus and minus 10% end at USD 55 and USD 45: portfolio log return zero, rather than the average asset log return negative 0.005025.
Hypothetical consecutive moves take USD 100 to USD 110 to USD 99, a log return of negative 0.010050. Simultaneous equal USD 50 holdings moving plus and minus 10% end at USD 55 and USD 45: portfolio log return zero, rather than the average asset log return negative 0.005025.
Original hypothetical cash-value ledger. Identical percentage moves produce different results when applied consecutively to one holding or simultaneously to separate holdings. All values are USD; no distributions, cash flows or costs.
For contrast, invest USD 50 in asset A and USD 50 in asset B over one shared period. A gains 10% and B loses 10%. The combined end value is 55+45=10055+45=100, so the portfolio log return is zero. Averaging the asset log returns instead gives 12ln⁡(1.1)+12ln⁡(0.9)≈−0.005025\tfrac12\ln(1.1)+\tfrac12\ln(0.9)\approx-0.005025.

For fixed holdings with initial value weights wiw_i summing to one, positive asset gross returns GiG_i, and no cash flows or costs, the portfolio gross return is ∑iwiGi\sum_i w_iG_i. Its log return is therefore

ln⁡(∑iwiGi),\ln\left(\sum_i w_iG_i\right),
provided that sum is positive. It is generally not ∑iwiln⁡Gi\sum_i w_i\ln G_i. Adding holdings' terminal values is a different operation from multiplying successive growth factors.

Keep the argument intact

There is no general rule that splits a sum inside a logarithm. For example,

ln⁡(2+3)=ln⁡5≈1.609438,ln⁡2+ln⁡3=ln⁡6≈1.791759.\ln(2+3)=\ln5\approx1.609438, \qquad \ln2+\ln3=\ln6\approx1.791759.

A sum can sometimes be factored before applying the product rule. For x,y>0x,y>0,

ln⁡(x+y)=ln⁡[x(1+yx)]=ln⁡x+ln⁡(1+yx).\ln(x+y)=\ln\left[x\left(1+\frac{y}{x}\right)\right] =\ln x+\ln\left(1+\frac{y}{x}\right).

The remaining logarithm does not disappear.

Domain restrictions must also survive an expansion. Although ln⁡(x2)\ln(x^2) exists for every real x≠0x\ne0, 2ln⁡x2\ln x exists only for x>0x>0. The identity covering both signs is

ln⁡(x2)=2ln⁡∣x∣,x≠0.\ln(x^2)=2\ln\lvert x\rvert,\qquad x\ne0.

At x=−2x=-2, the left side is ln⁡4≈1.386294\ln4\approx1.386294; ln⁡(−2)\ln(-2) is undefined over the reals. Likewise, ln⁡(x/y)\ln(x/y) may exist when both xx and yy are negative, while the proposed expansion ln⁡x−ln⁡y\ln x-\ln y does not. Check each argument after rewriting.

Finally, ln⁡(xk)\ln(x^k) and (ln⁡x)k(\ln x)^k are different expressions. The power law concerns a power inside the argument. It does not move a power applied to the logarithm itself.
For a longer route from these rules to continuously compounded rates, see Exponentials and Logarithms (public preview; full lesson requires membership).

Sources

Last updated
  • logarithms
  • algebra
  • log returns
  • compounding
← Back to the glossaryBack to top ↑