Advances in the separation and functionalization of single walled carbon nanotubes (SWCNT) by their electronic type have enabled the development of ratiometric fluorescent SWCNT sensors for the first time. Herein, single chirality SWCNT are independently functionalized to recognize either nitric oxide (NO), hydrogen peroxide (H(2)O(2)), or no analyte (remaining invariant) to create optical sensor responses from the ratio of distinct emission peaks. This ratiometric approach provides a measure of analyte concentration, invariant to the absolute intensity emitted from the sensors and hence, more stable to external noise and detection geometry. Two distinct ratiometric sensors are demonstrated: one version for H(2)O(2), the other for NO, each using 7,6 emission, and each containing an invariant 6,5 emission wavelength. To functionalize these sensors from SWCNT isolated from the gel separation technique, a method for rapid and efficient coating exchange of single chirality sodium dodecyl sulfate-SWCNT is introduced. As a proof of concept, spatial and temporal patterns of the ratio sensor response to H(2)O(2) and, separately, NO, are monitored in leaves of living plants in real time. This ratiometric optical sensing platform can enable the detection of trace analytes in complex environments such as strongly scattering media and biological tissues.