Question: how to sell a house with foundation problems?
Answer: Identify and Disclose the Damage. Even small cracks are suspect to a home inspector, so make sure you consult a structural engineer who can tell you for sure if there's a problem. ... 
Pay to Fix the Damage. ... 
Sell the House at a Reduced Price.