The US Geological Survey says the quake struck in the sea, 147 km northwest of the city of Ternate and at a depth of 76.5 km.
There are no immediate tsunami warnings and no immediate reports of damage.
Earlier today there was a 5.8 earthquake that affected the Indonesian island of Sulawesi.