Profit and revenue are up at American Airlines, and the company will share some of the gains with shareholders.

American Airlines Group Inc. said Thursday that it earned $864 million in the second quarter, up from the $507 million that American and US Airways earned separately a year ago, before their merger.