We aimed to quantitatively assess intracranial pressure (ICP) using optic nerve sheath diameter (ONSD) measurements. We recruited 316 neurology patients in whom ultrasonographic ONSD was measured before lumbar puncture. They were randomly divided into a modeling and a test group at a ratio of 7:3. In the modeling group, we conducted univariate and multivariate analyses to assess associations between ICP and ONSD, age, sex, BMI, mean arterial blood pressure, diastolic blood pressure. We derived the mathematical function "Xing &Wang" from the modelling group to predict ICP and evaluated the function in the test group. In the modeling group, ICP was strongly correlated with ONSD (r = 0.758, p < 0.001), and this association was independent of other factors. The mathematical function was ICP = -111.92 + 77.36 × ONSD (Durbin-Watson value = 1.94). In the test group, a significant correlation was found between the observed and predicted ICP (r = 0.76, p < 0.001). Bland-Altman analysis yielded a mean difference between measurements of -0.07 ± 41.55 mmH2O. The intraclass correlation coefficient and its 95%CIs for noninvasive ICP assessments using our prediction model was 0.86 (0.79-0.90). Ultrasonographic ONSD measurements provide a potential noninvasive method to quantify ICP that can be conducted at the bedside.