The New York-based banking giant, the second big financial institution in a week to release upbeat earnings news, reported net income of $2.72 billion, or 28 cents per share, up 36 percent from $2 billion, or 53 cents per share, a year earlier. Revenue rose 39 percent to $25.62 billion from $18.4 billion.
JPMorgan's upbeat report followed strong earnings earlier Tuesday from Goldman Sachs Group Inc.
Earnings per share fell despite an increase in profit because the company had more stock outstanding in the most recent quarter ending June 30.
Analysts forecast earnings of 4 cents per share on revenue of $25.89 billion for the quarter.
The profit came despite a charge of $1.1 billion, or 27 cents a share, as JPMorgan repaid in full $25 billion in loans it received from the U.S. government as part of the Troubled Asset Relief Program, or TARP. The bank was also hit by a 10-cents-a-share FDIC special assessment penalty.
CEO Jamie Dimon said he was "pleased" by the results, even as the company's latest numbers were weighed down by higher credit costs, particularly in the company's consumer lending and credit card businesses.
The bank said it set aside $9.7 billion for credit losses, up from $4.29 billion a year earlier but down from the first quarter's $10 billion.