First‐principles calculations (USPEX and CASTEP code) using plane‐wave pseudopotentials under the generalized gradient approximation functional of Perdew—Burke—Ernzerhof are performed to investigate the structural, electronic, and elastic properties of N2O4 and N2O5.