Cracked walls, sagging roofs, and dips in the flooring can all suggest the foundation on the abode you're about to buy needs to be looked at. When there are issues with the foundation, there are likely problems elsewhere in the home, and buying a house with foundation issues means you’ll have more household repairs to contend with down the line. Cracks in drywall, crooked doors and windows, broken tiles and uneven, thus damaged, hardwood floors all occur when a foundation isn't level and sturdy. Rebuilding part of the foundation can cost tens of thousands of dollars; for an entirely new foundation, you could be looking at a bill of upwards of $100,000.
Simply put, I would only recommend buying a property with foundation issues if the cracks in the foundation are less than 1/4/ inch wide. That size of cracks doesn't usually require repair.