Before it described spending, extravagant described paperwork. The first extravagant things in English were papal laws that had been left out of the official books.

The source is Medieval Latin extravagari, "to wander outside or beyond." It joins extra-, "outside of," and vagari, "to wander or roam." Its present participle, extravagantem, gave English the adjective in the late 1300s.

The wandering things were decretals, rulings issued by popes. Canon law was organized in official collections, beginning with Gratian's Decretum of about 1140 and later the decretals of Gregory IX, published in 1234. Rulings that fell outside these collections were called Extravagantes. They wandered outside the canon.

Two such groups became well known. Twenty decretals of Pope John XXII, who reigned from 1316 to 1334, were glossed in 1325 as the Extravagantes of John XXII. The Extravagantes communes gathered rulings from popes between 1281 and 1482. Jean Chappuis gave that collection its name in his Paris edition of the Corpus Juris, printed between 1499 and 1505. Both sets were printed in the official 1582 edition, though as collections they never gained official standing.

Meanwhile, the English word was wandering too. In the 1400s it also meant "rambling, irrelevant" and "extraordinary, unusual." By the 1590s, probably through French, it meant excessive or beyond reasonable limits. The money sense, wasteful and lavish spending, is recorded from 1711. The noun extravagance took the same turn and meant wasteful spending by 1727.

Wordsworth even used a verb, extravagate, in The Prelude. It means to wander beyond limits, which is the original Latin idea with nothing added.

A related Latin word, vagus, "wandering," gave English vague. A vague statement, first recorded in the 1540s, is one whose meaning wanders and cannot be pinned down. Etymonline calls the deeper origin of the word uncertain.

The showiest relative is extravaganza. English borrowed it from Italian in 1754 for peculiar behavior, and by 1794 it named a fantastic kind of performance or writing. It traces back to the same Medieval Latin participle as extravagant. A lavish stage spectacle and a stray papal ruling share a root.