How to Calculate Return on Investment (ROI)

A guide to calculating ROI for long and short portfolios, including dividends.

By Portfowlio

ROI Calculator

What is ROI?

Return on investment (ROI) compares a simple gain or loss with an initial amount. It can help describe one investment result, but it does not show how long the investment was held or capture every cash flow.

Calculating ROI for Long Portfolios

For long portfolios, ROI is calculated as:

ROI = [(Final Value - Initial Value + Dividends) / Initial Value] × 100

Example: If you buy for $1,000, sell for $1,200, and receive $50 in dividends, the simple ROI is:

ROI = [($1,200 - $1,000 + $50) / $1,000] × 100 = 25%

Calculating ROI for Short Portfolios

For short portfolios, ROI is calculated as:

ROI = [(Initial Value - Final Value - Dividends) / Initial Value] × 100

Example: If a short sale brings in $1,000, the position costs $800 to close, and $20 in dividends are paid to the lender, the simplified ROI is:

ROI = [($1,000 - $800 - $20) / $1,000] × 100 = 18%

Key Considerations

  • This simplified calculation does not include fees, taxes, borrowing costs, or margin requirements.
  • It assumes one initial amount and one final value; additional contributions or withdrawals need separate treatment.
  • ROI does not account for holding period, compounding, or the time value of money.

Conclusion

ROI is one descriptive measure, not a complete risk or performance analysis. For a useful comparison, consider the holding period, all cash flows, costs, and the risks taken.