Generally, a concrete foundation needs to be at least 12 inches deep to ensure the foundation is below the frost line and can support the weight of the structure. In some cases, a deeper foundation is required. If you are building in an area with a high frost line, poor soil quality, or building a very heavy structure, you may need to dig deeper.
A qualified structural engineer can help determine the appropriate depth for your concrete foundation.