The formula that we have learnt for calculating pH of a solution is

But this formula is only valid for a particular range of the strength of acid / base. It is, infact, an equation obtained from another equation after applying the assumption that the solution is relatively dilute. As the solution becomes more and more concentrated, we need to consider another equation which is well beyond the course of JEE.