SYDNEY, AAP – Energy stocks soared and the big miners reversed recent flagging fortunes to help the ASX to a second consecutive day of gains.

There were gains of more than three per cent for Beach Energy, Santos and Woodside after oil prices rebounded from seven days of losses.

Miners BHP, Fortescue and Rio Tinto all closed higher by more than one per cent after recent struggles from falling iron ore prices.

Consumer staples shares were least popular. Coles slipped by more than three per cent to $18.26.

The benchmark S&P/ASX200 index closed higher by 13.1 points, or 0.17 per cent, to 7503 on Tuesday.

The All Ordinaries closed up 12.6 points, or 0.16 per cent, to 7773.7.

The Australian dollar was buying 72.34 US cents at 1619 AEST, higher than 71.60 US cents at Monday’s close.