In October, FDI to China grew 7.4% from a year earlier to 69.2 billion yuan, the ministry said.
Foreign investment is expected to remain stable over the full year, said Zong Changqing, director of the department for foreign investment under the Ministry of Commerce, at a news briefing in Beijing on Monday.
Overall, China has not seen a large-scale retreat of foreign investment, said Zong, when asked about companies moving production to other countries to avoid higher pressure brought about by tariffs.
China and the United States remain locked in a bruising trade war involving tariff hikes on billions of dollars worth of each other's goods.
(Reporting by Lusha Zhang and Se Young Lee; Editing by Shri Navaratnam and Alex Richardson)