Foundation (engineering)
Foundations are designed to have an adequate load capacity depending on the type of subsoil/rock supporting the foundation by a geotechnical engineer, and the footing itself may be designed structurally by a structural engineer. The primary design concerns are settlement and bearing capacity. When considering settlement, total settlement and differential settlement is normally considered. Differential settlement is when one part of a foundation settles more than another part. This can cause problems to the structure which the foundation is supporting. Expansive clay soils can also cause problems.
Basement
Structurally, for houses, the basement walls typically form the foundation. In warmer climates, some houses do not have basements because they are not necessary (although many still prefer them). In colder climates, the foundation must be below the frost line. Unless constructed in very cold climates, the frost line is not so deep as to justify an entire level below the ground, although it is usually deep enough that a basement is the assumed standard. In places with oddly stratified soil substrata or high water tables, such as most of Texas, Oklahoma, Arkansas, and areas within of the Gulf of Mexico, basements are usually not financially feasible unless the building is a large apartment or commercial structure.