If you're dong soil, it needs to be relatively thin due to the development of a more anaerobic environment. I think many with standard substrates do what Mr. Limpet stated. Some actually create a slope in their tank and sometimes have up to 5 inches in the back that eventually tapers to something like 2 inches in the front. Some plants with extensive root systems will need deeper substrates than those without.