The density altitude is the altitude at which the density of the International Standard Atmosphere (ISA) is the same as the density of the air being evaluated. (The Standard Atmosphere is simply a mathematical model of the atmosphere which is standardized so that predictable calculations can be made.)
So, the basic idea of calculating density altitude is to calculate the actual density of the air, and then find the altitude at which that same air density occurs in the Standard Atmosphere.