Gas-phase carboxylic acids are ubiquitous in ambient air, yet their indoor occurrence and abundance are poorly characterized. To fill this gap, we measured gas-phase carboxylic acids in real-time inside and outside of a university classroom using a high-resolution time-of-flight chemical ionization mass spectrometer (HRToF-CIMS) equipped with an acetate ion source. A wide variety of carboxylic acids were identified indoors and outdoors, including monoacids, diacids, hydroxy acids, carbonyl acids, and aromatic acids. An empirical parametrization was derived to estimate the sensitivity (ion counts per ppt of the analytes) of the HRToF-CIMS to the acids. The campaign-average concentration of carboxylic acids measured outdoors was 1.0 ppb, with the peak concentration occurring in daytime. The average indoor concentration of carboxylic acids was 6.8 ppb, of which 87% was contributed by formic and lactic acid. While carboxylic acids measured outdoors displayed a single daytime peak, those measured indoors displayed a daytime and a nighttime peak. Besides indoor sources such as off-gassing of building materials, evidence for acid production from indoor chemical reactions with ozone was found. In addition, some carboxylic acids measured indoors correlated to CO in daytime, suggesting that human occupants may contribute to their abundance either through direct emissions or surface reactions.