The Sharpe ratio is a formula that helps investors to understand the relationship between the return of an investment and its risk. To calculate the Sharpe ratio, we need to take the return of the portfolio, subtract the risk-free rate and divide the result by standard deviation of the portfolio’s excess return.