The U.S. Geological Survey says the quake's epicenter was 2 miles from Berkeley. The earthquake had a preliminary depth of 8 miles.
No damage or injuries were immediately recorded.
The USGS website says people reported feeling the quake 40 miles south in San Jose.