I believe it is a 3.8% tax on unearned income above $250,000 you are referring to.
My understanding is that the tax applies to the 250 figure but in the case of a sale of a house, the sale counts as income and is added to the adjusted gross income. So this would catch folks who sell a house less than 250.
Then the 3.8% applies.
Might not be absolutely accurate here, but saw this in the WSJ when details of obamacare started leaking out.