Olympic swimmer Geoff Huegill and his wife, Sara Hills, will appear in court after they were allegedly found carrying cocaine at the races in Sydney.

NSW police were patrolling Randwick racecourse on Saturday when they were directed to a suite in the grandstand by security personnel.

They say officers spoke to a 35-year-old man and his 30-year-old wife, who stand accused of possessing a small quantity of white powder, which the police allege was cocaine.

The couple will appear in Waverley Local Court on May 14.

On Monday afternoon the pair's lawyer released a statement, confirming that Huegill and his wife had been issued with a court attendance notice by police on Saturday in relation to an alleged offence while attending a function at Randwick.

"As the matter is not yet resolved, my clients do not intend to make any further comment at this point in time," the lawyer's statement said.

Two-time Olympic medallist Huegill is the latest high-profile Australian swimmer to find himself in the spotlight.

Olympic greats Ian Thorpe and Grant Hackett have both spent time in rehab this year.

Thorpe has been treated for depression and alcohol abuse while Hackett recently returned from a stint in the US for a sleeping pill addiction.

Huegill battled weight problems after retiring from swimming following the 2004 Athens Olympics.

He turned his life around by losing 45 kilograms and returning to the pool, winning the 100m butterfly at the 2010 Commonwealth Games.

AAP