An exemplary centrifugal fan includes a housing and an impeller received in the housing. The housing defines an air inlet and an air outlet thereof. Airflow driven by the impeller flows out of the housing via the air outlet. The housing further defines an opening adjacent to one end of the air outlet. The ambient air out of the centrifugal fan enters the housing via the opening, and flows out of the housing via the air outlet.