To calculate the real risk-free rate, subtract the current inflation rate from the Treasury bond yield that matches your investment duration. If, for example, the 10-year Treasury bond yields 2%, investors would consider 2% to be the risk-free rate of return. Treasury bonds are the most often cited proxy for the risk-free rate because they are backed by the full faith and credit of the U.S. government.
If inflation stands at 0.5%, then the real risk-free rate would be 1.5%: The risk-free rate of 2% minus 0.5% inflation equals 1.5%.
In practice, this 1.5% real risk-free rate is the rate that investors expect to earn after inflation from a risk-free investment with a 10-year duration after inflation.