The Elysee Palace said he was tested after showing early symptoms.
He will now self-isolate for seven days but will continue to work and carry out his activities remotely.
The brief statement does not give details of the symptoms experienced by the French president.
“He will continue to work and take care of his activities remotely,” he added.
Mr Macron was due to visit Lebanon next week, December 22. The trip has now been canceled, a spokeswoman said.
It was not immediately clear what contact tracing efforts were underway, but palace officials added that it was trying to assess where he may have contracted the virus.
Mr Macron met Portuguese Prime Minister Antonio Costa on Wednesday. There was no immediate comment from Portuguese officials.
The French president was among EU leaders and delegates at a meeting of European Council heads of state late last week in Brussels, Belgium, December 10-11.
The diagnosis also comes nine days after a state visit to Paris by Egyptian President Abdel Fattah al-Sisi.
During the two-day trip, Mr. Macron presented his Egyptian counterpart with the Legion of Honor – France’s highest honor.
French Prime Minister Jean Castex will also self-isolate after coming into contact with Mr Macron in recent days, said Gérard Larcher, head of the Senate, the upper house of the French parliament.