Electronic portal imaging devices (EPIDs) can be used to measure a two-dimensional (2D) dose distribution behind a patient, thus allowing dosimetric treatment verification. For this purpose we experimentally assessed the accuracy of a 2D portal dose prediction model based on pencil beam scatter kernels. A straightforward derivation of these pencil beam scatter kernels for portal dose prediction models is presented based on phantom measurements. The model is able to predict the 2D portal dose image (PDI) behind a patient, based on a PDI without the patient in the beam in combination with the radiological thickness of the patient, which requires in addition a PDI with the patient in the beam. To assess the accuracy of portal dose and radiological thickness values obtained with our model, various types of homogeneous as well as inhomogeneous phantoms were irradiated with a 6 MV photon beam. With our model we are able to predict a PDI with an accuracy better than 2% (mean difference) if the radiological thickness of the object in the beam is symmetrically situated around the isocenter. For other situations deviations up to 3% are observed for a homogeneous phantom with a radiological thickness of 17 cm and a 9 cm shift of the midplane-to-detector distance. The model can extract the radiological thickness within 7 mm (maximum difference) of the actual radiological thickness if the object is symmetrically distributed around the isocenter plane. This difference in radiological thickness is related to a primary portal dose difference of 3%. It can be concluded that our model can be used as an easy and accurate tool for the 2D verification of patient treatments by comparing predicted and measured PDIs. The model is also able to extract the primary portal dose with a high accuracy, which can be used as the input for a 3D dose reconstruction method based on back-projection.