An electronic apparatus includes an enclosure (30), a circuit board (40), a fan module (20), and an air guiding element (10) mounted in the enclosure. The circuit board includes at least one heat generating component (41) thereon. The fan module has a fan (22) and an output opening (213) corresponding to the fan. The air guiding element comprises a resisting panel (11) and a guiding panel (12) comprises a free end that extends toward the output opening of the fan module. The at least one heat generating component and the output opening are on the same side of the resisting panel. The guiding panel defines a free end (127) and a connecting end (125) connecting the resisting panel. A plane defined by the ends of the guiding panel is aligned at an angle larger than 90 degrees relative to the resisting panel.