The snap poll was called by PM Yingluck Shinawatra amid major anti-government protests in Bangkok.
The ruling party was expected to win, but the opposition boycotted it and protesters disrupted voting, meaning the election has not been completed.
The vote was unconstitutional because it did not take place on the same day across the country, the court said.
Polls were not held in a number of constituencies because protesters had blocked candidate registration.
Thailand’s Constitutional Court, which ruled to void the election by six votes to three, was responding to a motion by a law lecturer who had challenged the election on a number of points.
It is not clear when a new election will be held.
Thailand has been hit by anti-government protests since November 2013.
The protesters, who are mainly urban and middle class, want Yingluck Shinawatra’s government replaced by an unelected “people’s council”.
They allege her brother, ousted leader Thaksin Shinawatra, controls her administration and say Shinawatra family money has corrupted Thai politics.
Yingluck Shinawatra and her ruling Pheu Thai party remain very popular in rural areas, however, leaving Thailand deeply polarized.
Image source: Wikimedia Commons President-elect Donald Trump celebrated his election victory at the Ultimate Fighting…
Millions of voters across the US chose to return Donald Trump to the White House…
Donald Trump declares victory in the US election as he addresses jubilant supporters in Florida.…
Stocks around the world are rising as Donald Trump appears to be on the cusp…
Donald Trump has won Pennsylvania, North Carolina and Georgia and taken a lead over Kamala…
Quincy Jones, the celebrated musician and producer who worked with Michael Jackson, Frank Sinatra, Ray…