man wins home irs wont let him have it..

well get this.. he owes 172k but if he sales the home for say 400k he has to pay tax on that and it would be like 190 k. the poor guy only make like 40 k on a 400k home.... this is so wrong...