Oxygen-glucose deprivation (OGD) is a critical model for studying hypoxic-ischemic cerebrovascular disease in vitro. This paper is to investigate the protection of OGD-induced cellular damage and inflammatory responses by OGD preconditioning in vitro, to provide a theoretical basis for OGD preconditioning to improve the prevention and prognosis of ischemic stroke. OGD or OGD preconditioning model was established by culturing the PC12 cell line in vitro, followed by further adding A23187 (calcium ion carrier) or CsA (calcium ion antagonist). Cell viability was detected by MTT, apoptosis by Hoechst 33,258 staining, the levels of TNF-α and IL-1β mRNA by RT-qPCR and ELISA, and the levels of CaN, NFAT, COX-2 by RT-qPCR and Western blot. Cell viability was decreased, and apoptosis, inflammatory cytokines, and CaN, NFAT, and COX-2 levels were notably increased upon OGD, while OGD pretreatment significantly increased cell viability and decreased apoptosis, inflammation, and the Ca2+/CaN/NFAT pathway. Treatment with A23187 decreased cell viability, promoted apoptosis, and significantly increased TNF-α, IL-1β, CaN, NFAT, and COX-2 levels, while CsA treatment reduced the opposite results. In vitro OGD preconditioning mediates the Ca2+/CaN/NFAT pathway to protect against OGD-induced cellular damage and inflammatory responses.