Magnetic switchbacks are short magnetic field reversals ubiquitously observed in the solar wind. The origin of switchbacks remains an important open science question, because of switchbacks’ possible role in the heating and acceleration of the solar wind. Here, we report observations of 501 robust switchbacks, using magnetic and plasma measurements from the first eight encounters by the Parker Solar Probe. More than 46% (6%) of switchbacks are rotational (tangential; TD) discontinuities (RD), defined as magnetic discontinuities with large (small) relative normal components of magnetic field and proton velocity. Magnetic reconnection in the solar atmosphere can be a source of the observed RD-type switchbacks. It is discovered that: (1) the RD-to-TD ratio exponentially decays with increasing heliocentric distance at rate 0.06 [R S −1], and (2) TD-type switchbacks contain 64% less magnetic energy than RD-type switchbacks, suggesting that RD-type switchbacks may relax into TD-type switchbacks. It is estimated that relaxing switchbacks generated via magnetic reconnection in the solar atmosphere can transfer an additional 16% of the total reconnected magnetic energy into heating and/or accelerating the solar corona, within 11.6 [R S] of the reconnection site, below the critical Alfvén surface.