Trimethyl orthoformate is prepared on an industrial scale by the methanolysis of hydrogen cyanide:
:HCN +  3 HOCH  →  HC(OCH)  +  NH
Trimethyl orthoformate can also be prepared from the reaction between chloroform and sodium methoxide, an example of the Williamson ether synthesis.