The shared numerator
Both Sharpe and Sortino start from the same number: average return across the periods you enter, minus the risk-free rate you supply. Sharpe divides by the standard deviation of returns, so large swings in either direction reduce it. Sortino divides by downside deviation instead - volatility measured from the losing periods only - so profitable months never penalize it. Match the risk-free rate's period length to your returns, or every result shifts.