late 15c., "misfortune," from unhappy + -ness. Meaning "mental misery" is from 1722.
Entries linking to unhappiness
unhappy adj.
c. 1300, "causing misfortune or trouble (to oneself or others)," from un- (1) "not" + happy. Meaning "unfortunate, unlucky" is recorded from late 14c.; sense of "miserable, wretched" is recorded from late 14c. (originally via misfortune or mishap).
-ness
word-forming element denoting action, quality, or state, attached to an adjective or past participle to form an abstract noun, from Old English -nes(s), from Proto-Germanic *in-assu- (cognates: Old Saxon -nissi, Middle Dutch -nisse, Dutch -nis, Old High German -nissa, German -nis, Gothic -inassus), from *-in-, originally belonging to the noun stem, + *-assu-, abstract noun suffix, probably from the same root as Latin -tudo (see -tude).