Developing cardiovascular systems use mechanical forces to take shape, but how ubiquitous blood flow forces instruct local cardiac cell identity is still unclear. By manipulating mechanical forces in vivo, we show here that shear stress is necessary and sufficient to promote valvulogenesis. We found that valve formation is associated with the activation of an extracellular adenosine triphosphate (ATP)–dependent purinergic receptor pathway, specifically triggering calcium ion (Ca2+) pulses and nuclear factor of activated T cells 1 (Nfatc1) activation. Thus, mechanical forces are converted into discrete bioelectric signals by an ATP-Ca2+-Nfatc1–mechanosensitive pathway to generate positional information and control valve formation.