Organically modified metal oxide surfaces are of interest in many applications since they combine the advantages of metal oxide supports (structural properties, chemical and mechanical stability) and organic functionalities (for specific surface interactions). Although surface modification with organophosphonic acids (PAs) with an alkyl or aminoalkyl functional group on TiO2 has been investigated previously, knowledge of the synthesis-properties correlation (e.g. the binding mode of the PAs) is still lacking, especially for functional group-surface interactions. These are however important as they can influence functional group availability in applications such as (metal) sorption. In this work, the dependence of modification degree and phosphorus chemical environment on pH and chain length (C1 to C6) was investigated with TGA, ICP-OES, nitrogen/argon sorption, XPS, and solid-state 31P NMR and DFT calculations. The TGA and the ICP-OES results showed a clear impact of pH on surface modification degrees, with a different response for modification with alkyl- and aminoalkylphosphonic acids, featuring a more rapid decrease in modification degrees from pH 2 upwards for the alkylphosphonic acids compared to the aminoalkylphosphonic acids. Moreover, a clear correlation can be found between the aminoalkyl chain length and the NH2/NH3+ ratio. In addition, a positive correlation between the modification degree and the protonation degree of the amine group is observed for aminomethylphosphonic acid (AMPA) and 2-aminoethylphosphonic acid (2AEPA) modified samples, while this is absent for longer alkyl chains. This is supported by DFT calculations that indicate that the most stable binding modes of AMPA and 2AEPA grafted on the anatase (101) surface include hydrogen bonds between NH3+ and the surface oxygen atoms, in contrast, the most stable binding modes for 3-aminopropylphosphonic acid (3APPA), 4-aminobutylphosphonic acid (4ABPA), and 6-aminohexylphosphonic acid (6AHPA) grafted on the anatase (101) surface involve a Lewis acid-base interaction between NH2 and a surface Ti site.