A rotary compressor having two cylinders (6a, 6b), the compressor comprising: a crankshaft having a first eccentric portion and a second eccentric portion connected to each other by a connecting portion; and two compressive elements (4a, 4b) that compress working fluid in the cylinders (6a, 6b) as a first piston inserted over the first eccentric portion eccentrically rotates in accordance with rotation of the crankshaft, wherein the first piston inserted over the first eccentric portion undergoes assembly by being inserted over the first eccentric portion through the second eccentric portion, characterized in that, releasing portions (7a', 7b') are provided at outer diameter portions of the first eccentric portion and the second eccentric portion on the connecting portion side, the releasing portions (7a', 7b') being structured by step portions, each of the releasing portions being concentric to the first eccentric portion and the second eccentric portion respectively, and the releasing portions (7a', 7b') having a reduced outer diameter than the first eccentric portion and the second eccentric portion respectively, wherein, Hc-c < Hp - Hpc < Hc-c + Hcd < Hp is established where Hc-c is a height of the connecting portion, Hcd is a height of the releasing portions (7a', 7b'), Hp is a height of the first piston, and Hpc is a height of one of bevels respectively provided at both surfaces of the first piston, and an outermost diameter of a projection cross section obtained by overlaying a cross section of the first eccentric portion excluding the releasing portion and a cross section of the second eccentric portion excluding the releasing portion on each other is set to be greater than an inner diameter of the first piston. a crankshaft having a first eccentric portion and a second eccentric portion connected to each other by a connecting portion; and two compressive elements (4a, 4b) that compress working fluid in the cylinders (6a, 6b) as a first piston inserted over the first eccentric portion eccentrically rotates in accordance with rotation of the crankshaft, wherein the first piston inserted over the first eccentric portion undergoes assembly by being inserted over the first eccentric portion through the second eccentric portion, characterized in that, releasing portions (7a', 7b') are provided at outer diameter portions of the first eccentric portion and the second eccentric portion on the connecting portion side, the releasing portions (7a', 7b') being structured by step portions, each of the releasing portions being concentric to the first eccentric portion and the second eccentric portion respectively, and the releasing portions (7a', 7b') having a reduced outer diameter than the first eccentric portion and the second eccentric portion respectively, wherein, Hc-c < Hp - Hpc < Hc-c + Hcd < Hp is established where Hc-c is a height of the connecting portion, Hcd is a height of the releasing portions (7a', 7b'), Hp is a height of the first piston, and Hpc is a height of one of bevels respectively provided at both surfaces of the first piston, and an outermost diameter of a projection cross section obtained by overlaying a cross section of the first eccentric portion excluding the releasing portion and a cross section of the second eccentric portion excluding the releasing portion on each other is set to be greater than an inner diameter of the first piston.