Disclosed is a flame-retardant polyamide composition excellent in fluidity during molding and granulation ability on a twin-screw extruder or the like. A molded article produced from the composition is excellent in mechanical properties including stiffness, heat resistance and flame retardancy during a reflow soldering process, and shows low warpage. Specifically disclosed is a flame-retardant polyamide composition comprising 20 to 80 mass % of a specific polyamide resin (A), 1 to 40 mass % of a flame retardant (B), 5 to 60 mass % of a glass fiber (C), and 0.5 to 5 mass % of an auxiliary flame retardant (D), which can be molded in an article having reduced warpage. Preferably, the glass fiber (C) has a cross section having an aspect ratio of greater than 3.