We report that two widely-used drugs for erectile dysfunction, tadalafil and vardenafil, trigger bone gain in mice through a combination of anabolic and antiresorptive actions on the skeleton. Both drugs were found to enhance osteoblastic bone formation in vivo using a unique gene footprint and to inhibit osteoclast formation. The target enzyme, phosphodiesterase 5A (PDE5A), was found to be expressed in mouse and human bone as well as in specific brain regions, namely the locus coeruleus, raphe pallidus, and paraventricular nucleus of the hypothalamus. Localization of PDE5A in sympathetic neurons was confirmed by coimmunolabeling with dopamine β-hydroxylase, as well as by retrograde bone-brain tracing using a sympathetic nerve-specific pseudorabies virus, PRV152. Both drugs elicited an antianabolic sympathetic imprint in osteoblasts, but with net bone gain. Unlike in humans, in whom vardenafil is more potent than tadalafil, the relative potencies were reversed with respect to their osteoprotective actions in mice. Structural modeling revealed a higher binding energy of tadalafil to mouse PDE5A compared with vardenafil, due to steric clashes of vardenafil with a single methionine residue at position 806 in mouse PDE5A. Collectively, our findings suggest that a balance between peripheral and central actions of PDE5A inhibitors on bone formation together with their antiresorptive actions specify the osteoprotective action of PDE5A blockade.