An electric compressor, comprising: a compression mechanism that is arranged to suck in a refrigerant and compress and discharge the refrigerant; an electric motor that is arranged to drive the compression mechanism; an inverter control apparatus that has a power board that is arranged to convert a direct current supplied from a high-voltage power source into an alternating current and apply the alternating current to the electric motor and a control circuit board that is arranged to control application of the alternating current to the electric motor and control driving of the electric motor; and a housing that houses the compression mechanism, the electric motor and the inverter control apparatus, wherein: the power board is provided with a plurality of pin-like terminals (210a, 210b, 220a, 220b) for signal transmission to and from the control circuit board and for grounding along each of a pair of opposed sides; the control circuit board is electrically connected to the plurality of pin-like terminals (210a, 210b, 220a, 220b) and is fixed by soldering to the plurality of pin-like terminals (210a, 210b, 220a, 220b); and characterized in that the plurality of pin-like terminals (210a, 210b, 220a, 220b) are arranged along each of the pair of sides in a plurality of rows; wherein: the power board is in the form of a box provided with a bottom plate and outer frames (160a-d) provided in a standing manner at peripheral edges of the bottom plate; a row of the plurality of rows nearest to a respective side is provided on a respective one of the outer frames (160a, 160c); and parts of the plurality of pin-like terminals (210a, 210b, 220a, 220b) belonging to the row nearest to the respective side are each buried in the outer frame (160a,160c), and other parts that are continuous to the buried parts are provided so as to protrude from top end surfaces of the outer frame (160a, 160c). a compression mechanism that is arranged to suck in a refrigerant and compress and discharge the refrigerant; an electric motor that is arranged to drive the compression mechanism; an inverter control apparatus that has a power board that is arranged to convert a direct current supplied from a high-voltage power source into an alternating current and apply the alternating current to the electric motor and a control circuit board that is arranged to control application of the alternating current to the electric motor and control driving of the electric motor; and a housing that houses the compression mechanism, the electric motor and the inverter control apparatus, wherein: the power board is provided with a plurality of pin-like terminals (210a, 210b, 220a, 220b) for signal transmission to and from the control circuit board and for grounding along each of a pair of opposed sides; the control circuit board is electrically connected to the plurality of pin-like terminals (210a, 210b, 220a, 220b) and is fixed by soldering to the plurality of pin-like terminals (210a, 210b, 220a, 220b); and characterized in that the plurality of pin-like terminals (210a, 210b, 220a, 220b) are arranged along each of the pair of sides in a plurality of rows; wherein: the power board is in the form of a box provided with a bottom plate and outer frames (160a-d) provided in a standing manner at peripheral edges of the bottom plate; a row of the plurality of rows nearest to a respective side is provided on a respective one of the outer frames (160a, 160c); and parts of the plurality of pin-like terminals (210a, 210b, 220a, 220b) belonging to the row nearest to the respective side are each buried in the outer frame (160a,160c), and other parts that are continuous to the buried parts are provided so as to protrude from top end surfaces of the outer frame (160a, 160c). the power board is provided with a plurality of pin-like terminals (210a, 210b, 220a, 220b) for signal transmission to and from the control circuit board and for grounding along each of a pair of opposed sides; the control circuit board is electrically connected to the plurality of pin-like terminals (210a, 210b, 220a, 220b) and is fixed by soldering to the plurality of pin-like terminals (210a, 210b, 220a, 220b); and characterized in that the plurality of pin-like terminals (210a, 210b, 220a, 220b) are arranged along each of the pair of sides in a plurality of rows; the power board is in the form of a box provided with a bottom plate and outer frames (160a-d) provided in a standing manner at peripheral edges of the bottom plate; a row of the plurality of rows nearest to a respective side is provided on a respective one of the outer frames (160a, 160c); and parts of the plurality of pin-like terminals (210a, 210b, 220a, 220b) belonging to the row nearest to the respective side are each buried in the outer frame (160a,160c), and other parts that are continuous to the buried parts are provided so as to protrude from top end surfaces of the outer frame (160a, 160c).