We derive a formula, useful for first-principles calculations, which relates the free energy of an oxide/metal interface to the free energies of surfaces and the work of separation of the interface. We distinguish the latter mechanical quantity from the thermodynamic work of adhesion, and we describe explicitly how both may be calculated. Our formulas for interfacial and surface energies are cast in terms of quantities which can be calculated or looked up in tables, and include as additional parameters the ambient temperature and partial pressure of oxygen P-O2 From total-energy calculations for the Nb(111)/alpha-Al2O3 (0001) interface, free Nb and Al2O3 surfaces, we obtain firstly numerical estimates of the works of separation, which are independent of P-O2. We then obtain surface energies, interfacial energies, and the equilibrium work of adhesion as a function of P-O2.