Heterotopic ossification (HO) is a pathological process that often occurs in soft tissues following severe trauma. There is no effective therapy for HO. The BMP signalling pathway plays an essential role in the pathogenesis of HO. Our previous study showed that AMPK negatively regulates the BMP signalling pathway and osteogenic differentiation. The present study aims to study the effect of two AMPK activators berberine and aspirin on osteogenic differentiation and HO induced by traumatic injury. The effects of two AMPK activators, berberine and aspirin, on BMP signalling and osteogenic differentiation were measured by western blot, ALP and Alizarin red S staining in C3H10T1/2 cells. A mouse model with Achilles tenotomy was employed to assess the effects of berberine and aspirin on HO using μCT and histological analysis. First, our study showed that berberine and aspirin inhibited phosphorylation of Smad1/5 induced by BMP6 and the inhibition was attributed to the down‐regulation of ALK2 expression. Second, the combination of berberine and aspirin yielded more potent effects on BMP signalling. Third, we further found that there was an additive effect of berberine and aspirin combination on osteogenic differentiation. Finally, we found that berberine and aspirin blocked trauma‐induced ectopic bone formation in mice, which may be through suppression of phosphorylation of Smad1/5 in injured tissues. Collectively, these findings indicate that berberine and aspirin inhibit osteogenic differentiation in C3H10T1/2 cells and traumatic HO in mice, possibly through the down‐regulation of the BMP signalling pathway. Our study sheds a light on prevention and treatment of traumatic HO using AMPK pharmacological activators berberine and aspirin.