I know, pH=-log (H+); where H+ is a conc. of H+ or H3O+ given by molarity (M).
To calculate molarity the volume of total system is taken to be 1 L, but for theoretical calculations what is to be considered as a volume of the system where the molecules present are far less than Avogadro's number.