A system and method for providing the intraocular pressure (IOP) in the anterior chamber of an eye during ocular surgery is provided. Determination of IOP may be performed using an algorithm that is a function of the static (inflow) pressure and/or dynamic (outflow) pressure. Static (inflow) pressure may be calculated as a function of one or more parameters, including bottle height, wound leakage, sleeve size, length of irrigation tubing and/or inner diameter of the irrigation tubing. Dynamic (outflow) pressure may be calculated as a function of one or more parameters, including aspiration rate, vacuum rate, tip size, compliance of tubing, length of tubing, and/or inner diameter of tubing. Additional parameters may also be considered in the algorithm such as patient eye level.