Proton-conducting oxides, specifically doped barium zirconates, have garnered much attention as electrolytes for solid-state electrochemical devices operable at intermediate temperatures (400-600 o C). In chemical terms, hydration energy, E hyd , and proton-dopant association energy, E as , are two key parameters which determine whether an oxide exhibits fast proton conduction, but to date ab initio studies have for the most part studied each parameter separately, with no clear correlation with proton conductivity identified in either case. Here, we demonstrate that the oxygen affinity, E O.dopant , defined as the energy released when an oxide ion enters an oxygen vacancy close to a dopant atom, is the missing link between these two parameters and correlates well with experimental proton conductivities in doped barium zirconates. Ab initio calculations of point defects and their complexes in Sc-, In-, Lu-, Er-, Y-, Gd-, and Eu-doped barium zirconates are used to determine E hyd , E as , E O.dopant , and the hydrogen affinity, E H.host , of each system. These four energy terms are related by. Complementary hyd = O.dopant +2 H.host +2 as impedance spectroscopy measurements reveal that the stronger the calculated oxygen affinity of a system, the higher its proton conductivity at 350 °C. Although the proton trapping site is also an important factor, the results show that oxygen affinity is an excellent predictor of proton conductivity in these materials.