The absence of a ceiling is the whole point of the term. Social Security tax stops each year once wages reach the Social Security wage base. Medicare tax does not stop. The reason sits in one clause: section 3121(a)(1) caps taxable wages only "in the case of the taxes imposed by sections 3101(a) and 3111(a)," which are the Social Security halves. The hospital insurance tax at 3101(b) and 3111(b) is left out of that cap, so it runs on every dollar.
It has not always been that way. Medicare tax carried its own ceiling, higher than Social Security's, into the early 1990s. The Social Security Administration records the change in a single sentence: "After 1993, there has been no limitation on HI-taxable earnings." The logic behind the difference is that Social Security retirement benefits are calculated from covered earnings, so capping the earnings that count also caps the benefit the tax buys. Medicare Part A pays the same hospital benefit regardless of what a worker earned, so there is no benefit ceiling for a tax ceiling to match.
What counts as wages is a broader question than what feels like salary. Section 3121(a) defines wages as "all remuneration for employment," including the value of non-cash pay, and then carves out a long list of exceptions. Employer contributions to a retirement plan are outside it; an employee's own pre-tax 401(k) deferral is not, which is why a traditional deferral escapes income tax and still pays Medicare tax. Most employer-paid health coverage is excluded. Bonuses, commissions, taxable fringe benefits and the spread on a nonstatutory stock option exercise are all inside it.
The tax stops when earned income stops. Medicare tax is charged on wages and on net earnings from self-employment, and on nothing else. A retiree drawing a pension, taking withdrawals from a traditional IRA, collecting Social Security and receiving dividends pays no Medicare tax on any of it. A retiree who takes consulting work does pay it on that work, at any age, with no exemption for already being enrolled in Medicare.
Two things a paycheck hides. The first is that the employer's 1.45 percent is legally the employer's own tax, imposed by section 3111(b) as an excise tax on having employees, rather than a second withholding from the worker; it appears on no pay stub and no Form W-2. The second is that the employee's own 1.45 percent is not deductible, and section 275(a)(1)(A) says so outright; neither is the employer's half to the employee. A self-employed person is the exception, and a partial one: section 164(f) allows a deduction for half of the self-employment tax, but expressly excludes the 0.9 percent Additional Medicare Tax from it.