Abstract Objective This study aimed to investigate the proportion of patent foramen ovale (PFO) in people with epilepsy (PWE) compared to controls without epilepsy and to assess whether PWEs with and without PFO exhibit distinctive clinical features. Methods This is a case–control study conducted in a hospital. Contrast transthoracic echocardiography with a venous microbubble bolus and provocative maneuvers (Valsalva and coughing) were used to identify PFO and its right‐to‐left shunt (RLS) among 741 PWEs and 800 controls without epilepsy. The risk of having PFO in PWEs was explored using multiple matching methods and logistic regression with adjusted congenital factors that may affect the occurrence of PFO. Results The proportion of PFO in PWEs and controls was 39.00% and 24.25%, respectively. After 1:1 propensity score matching, the risk of suffering PFO in PWEs was 1.71 times (OR, 1.71; 95% CI, 1.24–2.36) higher than that in controls. PWEs also had a higher risk of having a high RLS grade (βepilepsy = 0.390, P