A new method for calculating activities and activity coefficients of components from phase diagram at a fixed temperature is introduced. Analytical expressions for the calculation of activities are presented, in which activities of components are functions of the composition. The application of the expressions to Mg-Sn system shows that this method is efficient.