We derive semiclassical energy functions in configuration space that provide upper or lower bounds to the energies of quantum-mechanical systems. The bounds are predicted by rigorous theorems about the local energy which we choose to depend on adjustable parameters in order to improve the accuracy of the results. We apply the method to one-dimensional models, central-field systems, and the Zeeman effect in hydrogen.