The Supreme Court is expected to rule on marriage equality and the legal status of same-sex couples later this month.

If the Justices vote in favor of marriage equality nationwide, all American same-sex married couples (not just those in the 37 states in which same sex marriage is already legal) could receive the same status and benefits as other legally married couples. Among the many financial benefits that could become available to same-sex married couples are the marriage benefits for Social Security. Those benefits provide an additional layer of financial security for older Americans—as much as $100,000 or more in lifetime Social Security benefits, depending on your unique situation.

Let’s unpack where those additional benefits come from.

What’s your Social Security benefit? Use the Financial Engines Social Security planner.

Social Security plays a very important part in many peoples’ lives after they stop working. According to the Social Security Administration, Social Security represents about 38% of the income of older Americans. Among seniors currently receiving Social Security benefits, 22% of married couples and about 47% of unmarried people rely on Social Security for 90% or more of their income.

Deciding how and when to claim Social Security can be complicated. It’s even more complicated for married couples, who can have thousands of strategies to choose from (no one ever said marriage equality was all champagne toasts and wedding cake). With so much at stake, it’s important that all married couples understand how to optimize this important benefit.

Meet Henry and Logan

To show the financial impact the right to marry can have on a same-sex couple, we ran the numbers for a fictional couple — Henry and Logan. Approaching their 64th and 62nd birthdays, respectively, Henry and Logan are facing the decision of when they should claim Social Security benefits. They have been together as a couple for decades and live in a state that does not currently allow them to be legally married.

As it stands now, Henry and Logan can only claim their Social Security benefits as single individuals. If you’re single, claiming Social Security is relatively straightforward—the big decision you need to make is when to claim your earned benefit. You can take it as early as age 62, or delay taking it up to age 70.

Why delay? Well, for each year you delay claiming your benefit between ages 62 and 70, the government will give you a 6-8% benefit increase. If you delay claiming from age 62 to 70, you could have about 75% more money in your pocket each month. For most people, it can pay to delay.

The Social Security Benefits Available to Legally Married Couples

Claiming Social Security benefits as a married couple (instead of as two single individuals) can increase additional lifetime benefits significantly—in some cases, to the tune of $100,000 or more. That financial bump comes in two forms:

Spousal Benefits: As a legally married spouse, you can claim your earned Social Security benefit based on your own working record, OR you can collect a Spousal Benefit that will provide you with 50% of your spouse’s Social Security benefit calculated at their full retirement age. This is most beneficial when one spouse has worked and earned significantly more than the other. There are a number of rules around when you can claim spousal benefits, but once you reach your full retirement age, and if you haven’t yet claimed your Social Security benefit, you can choose to take only the spousal benefit and delay claiming on your earned Social Security benefits. This allows your benefits to continue to grow up until age 70 while receiving some spousal benefits in the meantime—a strategy that increases your available lifetime Social Security benefit.

Survivor Benefits: One of the most valuable benefits that come with a legally recognized marriage is the Social Security Survivor Benefit. There are a ton of rules around claiming survivor benefits, but in a nutshell, if you are married and your spouse dies, you can claim Social Security benefits based on their working record instead of your own. So, if your spouse earned a significant amount more than you did in your working career, you would be eligible to receive their higher earned benefit for the rest of your life—something that is not possible if you claim Social Security as two single individuals. If you earned relatively the same amount as your spouse, the impact of the Survivor Benefit is minimal. Again, this gets complicated fast, which is par for the course with Social Security, but understanding the details could help you get the most from your Social Security benefit.

Marriage Can Give a Significant Financial Bump

In our Henry and Logan scenario, the ability to claim as a married couple and receive spousal and survivor benefits would increase Henry and Logan’s lifetime Social Security benefits by $140,832 if they claimed right away at ages 64 and 62 and die at 84 and 90 (something impossible to predict in real life, but which we did for the purpose of this scenario). If they delay claiming their earned benefit until age 70 and take advantage of the additional benefits available to them through marriage, they could increase their lifetime Social Security benefits by an additional $202,176 (that’s a total of $343,008). That’s real money, and could mean the ability for Logan to stay in their home after Henry’s death and avoid slipping into poverty.

Marriage-EqualityCheck out the full scenario to see how much the right to marry improves Henry and Logan’s financial security.

Of course, we’ll need to wait for the Supreme Court ruling to see how Henry and Logan’s story ends (not to mention the stories of Anne and Mary and millions of same-sex couples nationwide). In the meantime, we created our easy-to-use Social Security planner to help you better understand your own and your household’s Social Security claiming options—regardless of what your household might look like. The planner takes into account all possible lifespan combinations.