Much of the rain inundated Beijing's mountainous north near the Great Wall, with 28 deaths reported in the district of Miyun and two in Yanqing, the official Xinhua news agency said on Tuesday.
It did not say when or how the deaths occurred.
Heavy rain started last Wednesday and intensified around Beijing and surrounding provinces on Monday, with the capital experiencing up to 543 millimetres of rain in its northern districts, Xinhua said.
The average annual rainfall in Beijing is about 600mm.
"The cumulative amount of precipitation has been extremely high - reaching 80-90 per cent of the annual total in just a few days in some areas," said Xuebin Zhang of the University of Victoria in Canada and CEO of the Pacific Climate Impacts Consortium.
"Very few systems are designed to handle such an intense volume of rainfall over such a short period."
The local topography - mountains to the west and north - "trapped" the moist air and forced it to rise, enhancing the extraordinary amount of precipitation, he said.
China's usually arid north has seen record precipitation in recent years, with some scientists linking the rainfall to global warming.
In the summer of 2023, heavy rain and flooding killed at least 33 people in Beijing.
Rainfall in the city of Xingtai in neighbouring Hebei province exceeded 1000mm in two days - double the yearly average.
Late on Monday, President Xi Jinping said there had been "heavy casualties and property losses" in Beijing and the provinces of Hebei, Jilin and Shandong, and ordered "all-out" search and rescue efforts.
More than 80,000 Beijing residents had been relocated, Xinhua reported, with roads and communication infrastructure damaged and power to 136 villages cut off overnight.
The most intense rain occurred on Saturday in Beijing's hilly Huairou, which had 95mm of rain in an hour.
In Miyun on Monday, some people were trapped at an elderly care centre as water levels rose close to the roof.
Emergency rescue services swam into the building and used ropes to pull out 48 people.
On Tuesday, parks, libraries and museums including the Palace Museum at the Forbidden City were closed.
Train and bus services were suspended and hundreds of flights were cancelled or delayed at Beijing's two airports.
Heavy rain also pounded the province of Hebei and the city of Tianjin neighbouring Beijing, which are all part of the vast Hai river basin.
Four people were killed in a landslide in Hebei on Monday, with eight still missing, as six months' worth of rain fell at the weekend.
Heavy rain is expected to persist in parts of Beijing, Hebei and Tianjin on Tuesday, the emergency management ministry said, adding "the disaster relief situation is complex and severe".