The Drosophila wing imaginal disc is composed of two lineage-restricted populations of cells separated by a smooth boundary. Hedgehog (Hh) from posterior cells activates a signaling pathway in anterior cells near the boundary which is necessary for boundary maintenance. Here, we show that membrane potential is patterned in the wing disc. Anterior cells near the boundary, where Hh signaling is most active, are more depolarized than posterior cells across the boundary. Elevated expression of the ENaC channel Ripped Pocket (Rpk), observed in these anterior cells, requires Hh. Antagonizing Rpk reduces depolarization and disrupts the compartment boundary. Using genetic and optogenetic manipulations, we show that membrane depolarization promotes membrane localization of Smoothened and augments Hh signaling. Thus, membrane depolarization and Hh-dependent signaling mutually reinforce each other in this region. Finally, clones of depolarized cells survive preferentially in the anterior compartment and clones of hyperpolarized cells survive preferentially in the posterior compartment.