The properties of materials are strongly dependent on their chemical composition and configurations, making the development of precise phase diagrams crucial for designing new materials and optimizing materials processing. This presentation introduces the cluster expansion method, widely used to evaluate the configurational properties of body-centered cubic (BCC) and face-centered cubic (FCC) binary alloys based on first-principles calculations, and its application to the calculation of materials' phase diagrams.