To calculate how much you owe, you’d first find your capital gains tax bracket on the above chart (make sure to use the year you sold the home). Then, you’d multiply that by your total profit.