Scientists have achieved precise and fully reversible switching of the polarity of voltage produced by the thermoelectric effect across a gold junction with an atomic-scale contact. The control of thermoelectric voltage was achieved by mechanically elongating the contact. This technology is expected to find applications in thermopower generation, measurement techniques in materials science, and solid-state electronic devices.