Numerical calculations are presented to show the influence of pressure and inductance on the vertical stability of shaped tokamaks. High values of βp improve the vertical stability of dee shaped tokamaks but are destabilizing for an inverse dee. For elongated cross-sections, the pressure effect is well described by a linear dependence of the maximum value of the stable internal inductance li on βp, with a coefficient that depends on the geometry and increases with the triangularity. Stability diagrams are shown in terms of li versus βp for TCV- and DIII-D-like cross-sections. Current profile effects depend critically on the wall configuration: low values of li stabilizing if the wall is close, but increase the driving force of the instability in the absence of a wall. The competition between these two effects is considered for a configuration with discrete external conductors