Can I deduct a seller credit from my reported profit of real estate sales? Will I be taxed (for capital gains) on the seller credit?

How is real estate sales "profit" calculated for the purposes of capital gains tax? If I own my home outright and sell it for a purchase price of $100 with a $20 seller credit and $10 closing costs, will I pay capital gains tax on $100 or $70?