Mac Miller's cause of death has been revealed.

The rapper, who died aged 26 last month, passed away due to a drug overdose, according to a coroner's report published on Monday.

Miller died of "mixed drug toxicity" with fentanyl, cocaine and alcohol in his system, the Los Angeles County medical examiner-coroner said in a release.

An autopsy was conducted on 8 September, the day after his death. The manner of death has been certified as an accident.

Miller, whose full name was Malcolm James McCormick, was found unresponsive at his home on Valleycrest Drive in Studio City.

The rapper had openly discussed his struggles with substance abuse throughout his career.

Twitter tributes to Mac Miller

"It started by me just sitting inside all day and then it's like, then you get bored. Then you're like, 'Well I could just be high, and I could have a whole adventure in this room,'" he told The Fader in 2016.

"I'm always like, if someone’s like, 'You wanna try this?' I'm like, 'Yeah sure.' And then it just kind of f***s you up when you have a bunch of money because you try a drug, you like it, then you can buy a lot of it. So, I went through about everything."

Miller released his last album, Swimming, the month before his death. His memory was honoured last week during a tribute concert at the Greek Theatre in Los Angeles.

Support free-thinking journalism and attend Independent events

Chance the Rapper, John Mayer, Travis Scott, SZA and Ty Dolla $ign were among those who performed during the event, which benefited the recently formed Mac Miller Circles Fund for youth from underserved communities.