Flaws are common in rock mass engineering. The length and number of flaws have a great influence on the stability of rock mass. In this paper, uniaxial compression tests were carried out on six kinds of multi-flawed sandstone with different flaw lengths. Based on damage mechanics and energy theory, the mechanical variation characteristics, total strain energy, elastic strain energy and dissipation energy evolution law of multi-flawed sandstone with different flaw lengths under uniaxial action were analyzed. Based on the energy dissipation, the damage variable is redefined, and the sandstone damage process is divided into three stages: the initial damage weakening stage I, the damage stability stage II, and the damage accelerated development stage III. Using this conclusion, considering the initial compaction weakening stage of rock samples, Duncan model is introduced to modify the constitutive model of equivalent strain hypothesis. The results show that the theoretical curve is in good agreement with the experimental curve, indicating that the damage constitutive model can accurately reflect the damage and failure process of multi-flaw rock samples with different flaw lengths.