The key to the stability of any building is its foundation, but it is difficult to test some building sites in advance — such as those on the moon. New research is helping resolve the problem by using computer models that can utilize a small sample of soil to answer fundamental questions about how soil at a building site will interact with foundations.