Two men had to be treated for hypothermia after their boat capsized at a Hawke's Bay beach.

The men, aged 54 and 62, managed to make it safely to shore after their boat overturned while coming in to Waimarama Beach.

A rescue helicopter was called about 7am and picked the men up from the beach.

The men were flown to the Hawkes Bay Regional hospital for further treatment.