California's court also ordered him to pay $80,900 (Â£47,160) in damages, serve five days of community service and complete an anger management programme.
Bieber, 20, was not present in court for the sentencing.
The singer faces two other criminal cases in Florida and Toronto.
"Justin is glad to get this matter resolved and behind him," Bieber's representatives said in a statement after the verdict by Los Angeles Superior Court in Van Nuys.
"He will continue to move forward focusing on his career and his music."
Investigators searched Bieber's Calabasas home in California in January for evidence after the egging apparently caused serious damage.
One of the singer's friends was arrested on drug possession charges after that search.
The LA County Sheriff's Office say they were looking for surveillance video tapes when they spotted the drugs "in plain view".
Surveillance footage seized from the home appears to show Bieber high-fiving friends and celebrating after throwing eggs at his neighbour's home, police said.
The pop star could have faced a more serious felony charge if the damage to the home had been greater than $20,000.
He has since moved out of Calabasas to Beverly Hills.
Two previous investigations into Bieber's conduct by the sheriff's department did not lead to charges.
Prosecutors declined to charge him last year after a neighbour complained he drove recklessly through the area, and in November 2012 after a paparazzi photographer accused Bieber of assault.
He was arrested by police in Miami in January and charged with driving under the influence and driving without a valid licence and Toronto prosecutors have accused Bieber of assaulting a limousine driver in December.

The Flybe plane, which was carrying 62 passengers from Exeter, landed safely after declaring a full emergency at 13:43.
Edinburgh Airport said nobody was hurt during the incident.
A Flybe spokesman said: "The flight landed safely at Edinburgh Airport following the report of a technical fault with the aircraft."
He added: "The pilot followed standard operating procedures and, as is usual in such circumstances, the airport put its emergency vehicles on standby.
"All 62 passengers disembarked as normal when the aircraft arrived on stand."

Cornwall ran into a 20-5 lead after 30 minutes thanks to two tries from Billy Searle either side of a Neilson Webber score, as Matt Noble replied.
Surrey kicked three penalties either side of the break to narrow the gap before Searle got his third try with 17 minutes to go.
Herbie Stupple rounded off the win with a fifth score to send Cornwall through.
They are the reigning county champions after winning the Bill Beaumont Cup last year when they beat Lancashire in the final.
But, after three matches with the Red Rose county, they will face Cheshire in the final after they beat Lancashire 27-11 in their decisive clash at Fylde.

Richard Gray, 36, admitted intending to cause fear of violence with the fake firearm near Heene and St Mary's Primary Schools on 8 May.
He also admitted possessing a knife in Worthing's Victoria Park.
Gray, of Cortis Avenue, was sentenced at Crawley Magistrates' Court to eight weeks in prison for each offence, to run concurrently.
Canadian pop star Justin Bieber has pleaded no contest to misdemeanour vandalism in connection with the egging of his neighbour's home and has been sentenced to two years' probation.
[NEXT_CONCEPT]
A plane has made an emergency landing at Edinburgh Airport after having issues with its nose wheels.
[NEXT_CONCEPT]
Cornwall reached their fourth County Championship final in a row after a 32-14 win over Surrey at Camborne.
[NEXT_CONCEPT]
A man has been jailed for trying to scare people with an imitation gun near two Worthing schools.