I say "most" because certain prospective owners simply won't even want to take a risk on future slab problems with so much other inventory available, unless the house is priced aggressively. Also, some first-time buyers, who make up a sizable segment of the market, might be deterred by their lenders if an inspector or engineer believes there are more foundation problems ahead. This may be especially true because banks are apprehensive about lending on homes with structural issues. An engineer's report, which can cost from $300 to $500, can help clear the way for a smooth resale as long as you follow the report's repair recommendations.
I must say here that prospective buyers should hire their own inspector to examine a home before signing any papers on both new and pre-owned units. In the case of a newly built home, some buyers have their inspectors check every major step of the home's construction. Of course, not everyone can afford that, nor are all inspectors well-versed in the nuances of foundations. (Find one who is, prospective buyers.)
In your case, at least you were able to take the builder to court. A lot of builder contracts have binding-arbitration agreements that supersede the owner's right to a trial.
What causes such cracks? Sometimes it is poorly compacted dirt, and other times it's the natural "settling of a new home" caused by the shifting of unstable soil such as clay. Sometimes it is just shoddy work done by iffy contractors. Good workmanship can prevent most cracking. By the way, sometimes it takes a year or more worth of season changes to put a new home to the test (impact of hot and cold expansion/contraction on foundations, window and door envelopes, landscaping, roof, tile flooring, etc.) However, many items are warranted for only a year by the builder, and problems often do not surface in time. Be glad yours did.
Sometimes, builders (and other sellers) try to obscure cracked foundations. Several states impose strict penalties on sellers for intentionally concealing such structural problems from buyers. Sometimes there are red flags if you know where to look. For instance, did the builder prefer you not see the place until after new carpet was laid? Or were you asked to sign a contract restricting you from publicly mentioning the name of the builder in the event of defective work?
If you do get relief after the case is settled and are free to get repairs made as you see fit, you should interview several foundation-repair firms by phone. Make sure the company has been in business for a while (ideally 20 years or so), owns its own repair equipment and uses its own workers instead of less-accountable independent contractors. As part of your research, go beyond the company's hand-picked references and do an Internet search for problems and complaints. Contact the Better Business Bureau to see if there are many unresolved consumer issues with the firms.
Ask the adviserTo ask a question of the Real Estate Adviser, go to the "Ask the Experts" page and select "Buying, selling a home" as the topic. Read more Real Estate Adviser columns and more stories about mortgages.