High serum glucose to potassium ratio (GPR) at admission is implicated for a poor outcome in acute brain injury, acute intracranial hemorrhage, and aneurysmal subarachnoid hemorrhage. However, the relationship between GPR and the outcome of ischemic stroke (IS) remains unknown. In all, 784 IS patients from a large emergency Norwegian cohort were included for secondary analysis. The exposure and outcome were GPR at baseline and all-cause mortality within 30 days after the first admission. Multivariable logistic regression analysis was performed to estimate the risk of 30-day mortality based on GPR levels. In addition, we examined whether there was a nonlinear relationship between admission GPR and 30-day mortality using two-piecewise linear regression with a smoothing function and threshold level analysis. The results of multivariable regression analysis showed that GPR at baseline was positively associated with the 30-day mortality (OR 2.01, 95% CI 1.12, 3.61) after adjusting for potential confounders (age, gender, department, serum sodium, serum albumin, serum-magnesium, hypertension, heart failure, chronic renal failure, and pneumonia). When GPR was translated to a categorical variable, the ORs and 95% CIs in the tertiles 2 to 3 versus the tertile 1 were 1.24 (0.60, 2.56) and 2.15 (1.09, 4.24), respectively (P for trend = 0.0188). Moreover, the results of the two-piecewise linear regression and curve fitting revealed a linear relationship between GPR and 30-day mortality. In IS patients, GPR is positively correlated with 30-day mortality, and the relationship between them is linear. The GPR at admission may be a promising predictor for the short-term outcome in IS patients.