Theatrical run
Hancock had its world premiere as the opener at the 30th Moscow International Film Festival on June 18, 2008. To avoid copyright infringement, organizers undertook "unprecedented" steps to prevent illegal reproduction of the film.
For the film, Sony created a digital camera package (DCP) having 4K resolution, containing four times more information than the typical DCP that possessed 2K resolution. Projectors for the higher-resolution package were installed in 200 theaters in the United States with two dozen in evaluation. The impact of the package was debated, with one argument being that the difference would not be noticeable, and the counter-argument being that the higher resolution had future value.
Prior to the film's opening five-day weekend in the United States and Canada, predictions for its weekend performance ranged from as low as $70 million to as high as $125 million. According to CinemaScore, Hancock was given a B+ grade by audiences. The film was shown in advance screenings on July 1, 2008, in 3,680 theaters in the United States and Canada, grossing $6.8 million. The film was widely released on July 2, 2008, expanding to 3,965 theaters. At the conclusion of the five-day weekend, Hancock took top placement at the box office in the United States and Canada, grossing an estimated $107.3 million. The film had the third-biggest opening 4 July weekend after Transformers (2007) and Spider-Man 2 (2004). Hancock was Will Smith's fifth film to open on a 4 July weekend and was his most successful opening to date. The film was also Smith's eighth film in a row to take top placement in the American and Canadian box office and the twelfth film in Smith's career to lead the box office. Hancock was also Peter Berg's strongest opening of his directing career to date.
Outside of the United States and Canada, Hancock grossed $78.3 million in its opening weekend, drawing from 5,444 screenings across 50 markets, ranking it the third highest international opening of 2008 after Indiana Jones and the Kingdom of the Crystal Skull and Iron Man. Hancock averaged $14,382 per screen. It placed on top in 47 of the 50 markets in which it opened; its strongest openings were the United Kingdom with $19.3 million, Germany with $12.4 million, South Korea with $8.5 million, Australia with $7.3 million, and China with $5.5 million. The Chinese opening was the fourth-biggest opening to date for the country. Other international performances included $3.4 million in Brazil and $3.1 million in Taiwan. In Hong Kong, the film opened in first place with $1.3 million, averaging $37,300 across the 35 venues. The film's overall gross for its opening five-day weekend worldwide was $185.6 million.
In the following weekend of July 11–13, 2008, Hancock fell to second place in the United States and Canada behind Hellboy II: The Golden Army, grossing an estimated $33 million, a "modest" 47% drop in revenue. Overseas, Hancock expanded to 8,125 screens across 67 markets, ranking first at the box office again in 30 markets. The film's top opening grosses for the weekend included $11.4 million in Russia (589 screens), $9.9 million in France (739 screens), $4.6 million in Mexico (783 screens), $2.2 million in India (429 screens), $1.7 million in The Netherlands (90 screens), $1.3 million in Belgium (69 screens), and $1 million in Ukraine (81 screens). In territories playing Hancock for a second weekend, the United Kingdom dropped 45% to reach $33.4 million, Germany 37% to reach $24.2 million, Korea 38% to reach $14.7 million, and Australia 47% to reach $14.4 million. For the second weekend, with the 67 markets, Hancock accumulated an estimated $71.4 million in the international box office, only a $7.2 million drop from the previous weekend in territories outside the United States and Canada. Hancock grossed $227.9 million in the United States and Canada, and $401.5 million in other territories, for a worldwide total of $629.4 million.