This paper presents the results of calculating the thermodynamic properties of aluminum, copper, and their binary alloys under isothermal and shock compression. The calculations were performed by a theoretical equation of state based on perturbation theory. The pair Morse potential was used to describe the intermolecular interaction in metals. The calculation results are in good agreement with the experimental data and the results of molecular dynamics modeling performed in this work using the LAMMPS software package. Furthermore, it is shown that the equation of state based on the perturbation theory with the corresponding potential of intermolecular interaction can be used to calculate the thermodynamic properties of gaseous (fluid) systems and pure metals and their binary alloys.