"Avengers: Endgame" dethroned "Avatar" as the biggest movie in the world of all time.

But it has a tough hill to climb to beat "Gone with the Wind," the highest-grossing movie ever after adjusting for inflation.

Visit BusinessInsider.com for more stories.

"Avengers: Endgame" surpassed "Avatar" over the weekend to be the highest-grossing movie in the world of all time.

After a theatrical rerelease last month, "Endgame" finally managed to dethrone James Cameron's sci-fi movie, which sat at the top of the global box office for a decade. "Endgame" has grossed $2.790 billion and "Avatar" grossed $2.789.

But that's before adjusting for inflation.

"Endgame" has a much tougher hill to climb if it wants to beat "Gone with the Wind," the highest-grossing movie ever after adjusting for inflation.

Read more: We made a timeline showing the entire history of the Marvel Cinematic Universe leading up to 'Avengers: Endgame'

"Gone with the Wind," originally released in 1939, grossed $189 million domestically (not counting its multiple re-releases) and $402 million worldwide, according to Box Office Mojo.

Adjusting the worldwide box office for inflation can get tricky, but below is a breakdown.

The "Gone with the Wind" worldwide total today would be an astounding $7.4 billion, according to this consumer-price-index inflation calculator. The movie's domestic total would be $3.5 billion, based on the calculator.

Box Office Mojo calculates inflation by adjusting to a given year's average US ticket price — $9.01 this year — and doesn't calculate worldwide-box-office inflation. But according to Box Office Mojo, the movie's domestic total would be $1.8 billion with inflation.

Either way, "Avengers: Endgame" would have to perform beyond anyone's wildest dreams to beat "Gone with the Wind."