12

I understand how to calculate the Annualized return on a stock when I have single purchase ie

(principal + gain/principal) ^ (365/days) - 1

but how is it calculated when I have multiple buys and sells over a time period?

Alex B
  • 17,394
  • 11
  • 58
  • 108
CodeKiwi
  • 223
  • 1
  • 2
  • 6

3 Answers3

11

The best way to do this is to use IRR. It's a complicated calculation, but will take into account multiple in/out cash flows over time along with "idle periods" where your money may not have been doing anything. Excel can calculate it for you using the XIRR function

Eric Petroelje
  • 2,842
  • 1
  • 21
  • 19
10

Treat each transaction as separate, with its own principal, its own gain, and its own number of days. Then the total annualized return is just a weighted average of each annualized return, with the weighting related to the number of shares in that transaction.

mbhunter
  • 24,840
  • 2
  • 50
  • 88
3

Since Brad answered with a great reply, I'd like to offer another comment: Be careful with the results. Annualized returns of short term trading can produce some crazy results. For example, a 10% gain in a week isn't unheard of for individual stocks, but (1.1)^52 = 142. or a 14,100% return. This may be obvious, but may help those who aren't so familiar with the numbers to understand that data running less than a year isn't going to provide as much useful conclusion as longer term. Note: Even a year doesn't really reflect success in a given strategy.

JoeTaxpayer
  • 172,694
  • 34
  • 299
  • 561