Rechargeable battery having improved gasket and terminal structure

A rechargeable battery includes: an electrode assembly in a case; a cap plate coupled to an opening of the case; a rivet electrically connected to the electrode assembly, the rivet including: a first rivet flange; and a second rivet flange; and a gasket between the rivet flange and the cap plate, the gasket including: a first gasket flange configured to be coupled with the first rivet flange; and a second gasket flange configured to be coupled with the second rivet flange.