In the resolution of the large divergence between pressure calculated by way of axial stress components from elastic constants and pressure determined by an equation of state, a 2nd order pressure dependency of elastic constants is introduced. Incorporating results from the equation of state and ultrasonic measurements in the literature, we determined the pressure dependency of x-ray elastic constants of gold and established functions for the calculation of macro-stress components from its macro-strain counterparts. The precision of stress components through these functions is estimated to be at 1% level. The determination of stress components, including crucial shear components, through analysis of an x-ray diffraction image, is demonstrated.