The only free and comprehensive online etymological dictionary of the Spanish language
-edad, -idad Noun-forming suffix indicating a state of being.

From Latin -itatem, accusative of -itas 'id.' From Proto-Italic *-i-tāts, an i-stem with suffix *-tāts (see -dad).