The pan-immune-inflammation value (PIV) is an emerging biomarker quantitatively reflecting the systemic immune-inflammatory status. The predictive value of PIV has been well-established across various clinical settings. However, its role in chronic obstructive pulmonary disease (COPD) remains unclear and necessitates further investigation. Data from NHANES 1999-2018 were filtered. Logistic regression analyses were used to assess the correlation between COPD prevalence and PIV in all participants. COX regression analyses and Kaplan-Meier survival curves were used to investigate the relationship between COPD all-cause mortality and PIV in COPD patients. Restricted cubic spline (RCS) analyses and piecewise linear regression analyses were additionally employed to explore the correlation between PIV and COPD. Subgroup analyses were performed to further clarify the effects of other covariates on the associations. Sensitivity analyses were employed to assess the robustness of the results. A total of 28,485 participants aged 40years and older were recruited for this study. After fully adjusting for covariates, higher PIV levels were independently associated with increased COPD prevalence (OR = 1.67; 95% CI: 1.39-2.01) and all-cause mortality (HR = 2.04; 95% CI: 1.41-2.95). The COPD prevalence curve exhibited an inflection point at Log10-PIV of 2.24, showing no significant correlation on the left side (OR = 0.86; 95% CI: 0.45-1.64) but a positive correlation on the right side (OR = 2.00; 95% CI: 1.57-2.55). The COPD all-cause mortality curve displayed an inflection point at Log10-PIV of 2.38, indicating a negative correlation on the left side (HR = 0.23; 95% CI: 0.12-0.44) and a positive correlation on the right side (HR = 4.12; 95% CI: 2.62-6.48). Subgroup analyses with interaction tests showed that the strength of the correlation between PIV and COPD prevalence was influenced by race, smoking status, and BMI (all p for interaction <0.05). The relationship between PIV and COPD all-cause mortality was unaffected by any covariates (all p for interaction >0.05). Elevated PIV levels are associated with increased COPD prevalence. COPD patients with either elevated or reduced PIV levels experience higher all-cause mortality. Further large-scale, longitudinal studies are required to corroborate these findings.