The Sharpe Ratio is calculated as follows:
$$ \text{Sharpe Ratio} = \frac{\text{Portfolio Return} - \text{Risk-Free Rate}}{\text{Standard Deviation of Portfolio excess Return}} $$
Portfolio Return: The average return of your
investment or portfolio.
Risk-Free Rate: The return of a “safe” investment,
like a government bond.
Standard Deviation: A measure of how much the
portfolio’s returns vary (its volatility or risk).