It took until the final few medal events of the Tokyo Olympics, but the United States pushed ahead of China to close the 2020 Games as the big winners. The U.S. took home more gold medals than any other country (39) as well as more total medals than any other country (113).

USA and China were locked at 38 golds apiece with only a few final medals to be decided. It was the U.S. women's volleyball team that earned the Games' decisive gold with a clean, three-set sweep over Brazil.

[RELATED: 2020 Tokyo Olympics medal count]

Team USA rounded out its haul with 41 silver medals and 33 bronze. Tokyo marks the seventh consecutive Olympics that the United States has taken home the most overall medals. 

China leaves Tokyo with the second most gold medals (38) and the second most overall medals (88). Host nation Japan won the third most gold medals (27). And athletes representing Russia collected the third most overall medals (71). 

The United States entered the Tokyo Games with a commanding lead on the all-time medal standings, adding to its pre-Games totals of 1,023 gold medals, 797.5 silver medals, and 708.5 bronze medals (2,529 total medals). Prior to Tokyo, it was the Soviet Union in second (440 gold medals and 1,122 total) and Great Britain in third (260.5 golds and 849.5 total). China ranked fourth in gold medals (224), but seventh in total medals (546) behind Germany, France and Italy. (If you add the medals from the Soviet Union and Russia, they still place a distant second with 590 golds and 1,556 total.)

China leveraged its dominance in a handful of sports to pad its gold medal total. They won seven gold medals each in diving and weightlifting, and another four gold medals respectively in shooting and table tennis. All but one diving and table tennis gold medal were won by Chinese athletes.

American dominance was on display in swimming and track and field, in which U.S. athletes won 11 and seven gold medals, respectively.

Caeleb Dressel led the way among individual American gold medal winners with five gold medals racked up in the pool. Fellow swimmers Katie Ledecky, Bobby Finke and Zach Apple each won two gold medals, while track and field stars Sydney McLaughlin and Athing Mu also walked away with two gold medals apiece. The U.S. women's gymnastics team delivered a pair of gold medals, with a gold for Suni Lee in the individual all-around final and a gold for Jade Carey in the floor event final.

Country

Gold

Silver

Bronze

Total

USA

39

41

33

113

CHN

38

32

18

88

ROC

20

28

23

71

GBR

22

21

22

65

JPN

27

14

17

58

AUS

17

7

22

46

ITA

10

10

20

40

GER

10

11

16

37

NED

10

12

14

36

FRA

10

12

11

33

CAN

7

6

11

24

BRA

7

6

8

21

NZL

7

6

7

20

HUN

6

7

7

20

KOR

6

4

10

20

UKR

1

6

12

19

ESP

3

8

6

17

CUB

7

3

5

15

POL

4

5

5

14

SUI

3

4

6

13

TUR

2

2

9

13

TPE

2

4

6

12

CZE

4

4

3

11

DEN

3

4

4

11

KEN

4

4

2

10

JAM

4

1

4

9

SWE

3

6

0

9

SRB

3

1

5

9

NOR

4

2

2

8

CRO

3

3

2

8

GEO

2

5

1

8

KAZ

0

0

8

8

IRI

3

2

2

7

BEL

3

1

3

7

BLR

1

3

3

7

IND

1

2

4

7

AUT

1

1

5

7

AZE

0

3

4

7

BUL

3

1

2

6

HKG

1

2

3

6

EGY

1

1

4

6

SLO

3

1

1

5

UZB

3

0

2

5

INA

1

1

3

5

COL

0

4

1

5

DOM

0

3

2

5

GRE

2

1

1

4

UGA

2

1

1

4

IRL

2

0

2

4

ISR

2

0

2

4

ROU

1

3

0

4

VEN

1

3

0

4

PHI

1

2

1

4

SVK

1

2

1

4

ETH

1

1

2

4

POR

1

1

2

4

ARM

0

2

2

4

MGL

0

1

3

4

MEX

0

0

4

4

ECU

2

1

0

3

QAT

2

0

1

3

RSA

1

2

0

3

KGZ

0

2

1

3

ARG

0

1

2

3

SMR

0

1

2

3

BAH

2

0

0

2

KOS

2

0

0

2

TUN

1

1

0

2

EST

1

0

1

2

FIJ

1

0

1

2

LAT

1

0

1

2

THA

1

0

1

2

JOR

0

1

1

2

MAS

0

1

1

2

NGR

0

1

1

2

FIN

0

0

2

2

BER

1

0

0

1

MAR

1

0

0

1

PUR

1

0

0

1

BRN

0

1

0

1

KSA

0

1

0

1

LTU

0

1

0

1

MKD

0

1

0

1

NAM

0

1

0

1

TKM

0

1

0

1

BOT

0

0

1

1

BUR

0

0

1

1

CIV

0

0

1

1

GHA

0

0

1

1

GRN

0

0

1

1

KUW

0

0

1

1

MDA

0

0

1

1

SYR

0

0

1

1

Totals:

340

338

402

1080