A coil component includes a main body portion containing resin, a coil provided in the main body portion, and an outer electrode electrically connected to the coil. A recess extending from a top surface of the main body portion toward a bottom surface thereof is provided in the side surface of the main body portion. The outer electrode is disposed in the recess, and a wall layer is interposed between the outer electrode and the inner surface of the recess.