The quake hit at 6:54 p.m. local time (1224 GMT) at a depth of 10 kilometers (six miles), the US Geological Survey said.
It was 110 kilometers north of the city of Mandalay.
The agency indicated the quake caused strong shaking and issued a yellow alert, suggesting a mid-level risk of fatalities.
Earthquakes are relatively common in Myanmar.
The USGS said six strong earthquakes, of 7.0-magnitude and more, struck between 1930 and 1956 near the Sagaing Fault which runs north to south through the center of the country.
Last November a powerful earthquake left more than 20 people dead and destroyed hundreds of buildings in Mandalay and surrounding villages.