Purpose. To compare the accuracies of the AAA and AcurosXB dose calculation algorithms and to predict the change in the down-stream and lateral dose deposition of high energy photons in the presence of material with densities higher that commonly found in the body. Method. Metal rods of titanium (d=4.5 g cm-3), stainless steel (d = 8 g cm-3) and tungsten (d = 19.25 g cm-3) were positioned in a phantom. Film was position behind and laterally to the rods to measure the dose distribution for a 6 MV, 18MVand 10 FFF photon beams. A DOSXYZnrc Monte Carlo simulation of the experimental setup was performed. The AAA and AcurosXB dose calculation algorithms were used to predict the dose distributions. The dose from film and DOSXYZnrc were compared with the dose predicted by AAA and AcurosXB. Results. AAA overestimated the dose behind the rods by 15%- 25% and underestimated the dose laterally to the rods by5%-15% depending on the range of materials and energies investigated. AcurosXB overestimated the dose behind the rods by1%-18% and underestimated the dose laterally to the rods by up to5%depending on the range of material and energies investigated. Conclusion. AAA cannot deliver clinically acceptable dose calculation results at a distance less than 10mmfrom metals, for a single field treatment. Acuros XB is able to handle metals of low atomic numbers (Z ≤ 26), but not tungsten (Z = 74). This can be due to the restriction of the CT-density table in EclipseTM TPS, which has an upperHUlimit of 10501.