Conformation dictates many physical and chemical properties of molecules. The importance of conformation in the selectivity and function of biologically active molecules is widely accepted. However, clear examples of conformation-dependent bimolecular chemical reactions are lacking. Here we consider a case of formic acid (HCOOH) that is a valuable model system containing the -COOH carboxyl functional group, similar to many biomolecules including the standard amino acids. We have found a strong case of conformation-dependent reaction between formic acid and atomic oxygen obtained in cryogenic matrices. The reaction surprisingly leads to peroxyformic acid only from the ground-state trans conformer of formic acid, and it results in the hydrogen-bonded complex for the higher-energy cis conformer.