The epicenter was located approximately 49 kilometers (30 miles) east-southeast of Ofunato in Iwate province.
The tremor struck at 20.22 local time (1122GMT).
There were no immediate reports of damage or casualties. Authorities are continuing to monitor the situation, and no tsunami warning has been issued at the time of reporting.
Officials urged the public not to panic.