Calculate your gain on the sale. Calculate the percentage of your total sale price consisting of basis and the percentage consisting of taxable gain. Multiply each installment by your profit percentage to figure taxable gain from that installment.