Based on the H2O-P2O5-CaO phase diagram, we hypothesize that a phosphoric acid concentration around 27 wt% leaches most calcium from dentin. We also hypothesize that bond strength is affected by resin infiltration, and that resin infiltration becomes incomplete when calcium leakage exceeds a certain value. Dentin disks were cut from human molars. Eight phosphoric acid concentrations were prepared (15.7-51.2 wt%). For each acid group, there were four etch time subgroups (15, 30, 60 and 120 s). The dentin disks were etched in acid and rinsed in water for times corresponding to 15 s, 30 s, 60 s and 120 s. The calcium concentrations were analyzed using atomic absorption spectroscopy. Composite cylinders were bonded to the remaining parts of the teeth using the same etching protocol, and shear bond strength was determined. The 29.2 wt% group demonstrated the highest and the 15.7 wt% group the lowest calcium leaching value. Even though there were trends towards lower bond strength for longer etch times, a statistically significant difference was only found between 30 and 120 s. There was no significant correlation between calcium leaching and bond strength. The results support the tested hypothesis that the highest leaching value would be around 27 wt% phosphoric acid.