A team of young Australian students has won gold at this year's International Maths Olympiad (IMO) in Germany.

The six-member team won two gold medals and was placed 23rd overall out of 104 countries in the competition.

China and Japan took first and second place.

The two gold medals were won by 16-year-old Sampson Wong of James Ruse Agricultural High School in Sydney and Andrew Elvey Price from Brunswick Secondary College in Melbourne.

It is only the second time Australia has won two gold medals at an IMO.