As the authorities stepped up testing, the number of cases showed a 20 percent increase on the figures for Tuesday, while the death toll showed a 27 percent rise over the same period.
Despite the national lockdown imposed on March 14, which is to be extended until April 11, both deaths and infections have continued to mount, with officials warning this week would be particularly bad.
"We are approaching the peak," the ministry's emergencies coordinator Fernando Simon said in announcing the figures.
Health authorities are hoping it will soon become clear whether the lockdown is having the desired effect.
The Madrid region has suffered the brunt of the epidemic with 14,597 infections – just under a third of the total – and 1,825 deaths, or 53 percent of the national figure.
With hospitals on the brink of collapse from the surge in patients, troops have set up a massive field hospital in Madrid's vast IFEMA exhibition centre, which currently has 1,500 beds but which could be expanded to take in up to 5,500 people – making it the largest hospital in Spain.
And with the city's funeral services overwhelmed, officials have commandeered the Palacio de Hielo ice skating rink to serve as a temporary morgue.