Joint filing applies one rate table to the couple's combined taxable income. Where the incomes are unequal, part of the higher earner's income is taxed in bands the lower earner did not use, at rates below the ones it would have faced on a return of its own. That is the entire mechanism, and it scales with the gap between the two incomes rather than with their total.
Three cases, in order of how large the bonus is.
One earner, one non-earner: the largest bonus available. The whole of the non-earner's share of the doubled bands, plus a full unmarried-sized standard deduction, is applied to the earner's income.
Very unequal earners: a large bonus. The lower earner uses part of their bands and the higher earner's income takes up the remainder.
Two similar incomes: no bonus, and possibly a penalty. Each spouse fills their own half of the doubled bands, so nothing is absorbed, and the provisions that were never doubled start to bind. That case is the subject of the marriage penalty page.
A hypothetical built to isolate what the bonus actually tracks. Hold the household's income constant and vary only the split. Suppose a couple has $160,000 of combined taxable income, and consider three ways it could be divided. In all three, their joint liability is identical, because the joint table is applied to the combined figure and does not know or care who earned it. What changes is the comparison.
Split evenly, $80,000 each. On the unmarried table each spouse's income runs past the top of the 12 percent band, $50,400, and stops inside the 22 percent band, whose ceiling is $105,700. Neither reaches 24 percent, and neither has unused bands for the other to borrow. Marrying changes almost nothing from the rate tables.
Split $130,000 and $30,000. Now the higher earner alone runs past $105,700 and into the 24 percent band, while the lower earner leaves most of their own 12 and 22 percent bands unused. Filed jointly, the combined $160,000 sits below the joint 22 percent ceiling, $211,400, so none of it reaches 24 percent at all. The income that would have been taxed at 24 percent on one return is taxed at 22 percent on the joint one. That difference is the bonus.
Split $160,000 and nothing. The same effect, larger, because there are no bands used by the second spouse at all.
So the household's income never changed and its joint tax never changed. The bonus appeared, grew and vanished purely as a function of the gap between the two incomes. Two further points make it larger still than the rate tables alone suggest: the non-earning or lower-earning spouse brings a full unmarried-sized standard deduction to the return, sheltering a tranche of the other's income outright rather than merely taxing it lower, and a joint return raises the point at which most income-based phase-outs begin, so credits and deductions a single filer would have lost may survive.
The other side of it, which is not a tax point but belongs beside the tax point. The joint return that produces the bonus also creates joint and several liability: under section 6013(d)(3) either spouse can be pursued for the entire tax on the return, including tax on income they did not earn. The bonus and the liability arrive on the same piece of paper, and the filing mechanics are covered on the page for married filing jointly.