It is a common worry, at both ends of adulthood: am I too young, or too old, to be approved for a mortgage? The reassuring answer is that age itself is not allowed to be the deciding factor. What lenders can and do weigh is your ability to repay. Understanding that distinction, and the real obstacles that tend to come with youth or age, is the key to getting ready.

The law: age discrimination is illegal

Under the federal Equal Credit Opportunity Act (ECOA), it is unlawful for a lender to deny credit or discriminate on the basis of age, as the Consumer Financial Protection Bureau explains. A bank cannot refuse you a 30-year loan simply because you are older and, in its view, might not live to pay it off. What lenders assess instead is income, credit history, assets and your debt-to-income ratio, the share of your monthly income already committed to debts.

Older borrowers: it comes down to documentation

For retirees, the challenge is usually not age but proving that income will continue. The good news is that retirement income counts. Social Security, pensions, annuities and regular withdrawals from retirement accounts can all be used to qualify, provided you can document them, typically with award letters, statements or tax records showing a reliable history.

There is also a route for people who are asset-rich but show modest monthly income, sometimes called "asset depletion" or asset-based qualifying. Here a lender converts a portion of your savings and investments into a notional monthly income by spreading it over the loan term, letting substantial assets support an application even without a paycheck. Terms vary by lender, and such loans often expect strong credit and sizable reserves.

The key point: you can get a full-length mortgage at any age. The lender's question is whether you can afford the payment, not how long you are expected to live.

Younger borrowers: credit and cash are the hurdles

For first-time buyers, age is rarely the obstacle either, but two related things often are. The first is a thin credit history: a short track record can make it harder to meet a lender's credit-score threshold. Building credit steadily, for example with a starter card or as an authorized user on a family member's account, helps over time.

The second is the down payment. Pulling together even a modest percentage of a home's price is the wall many younger buyers hit first, which is where first-time-buyer programs, down-payment assistance and gifted funds from family can make the difference. High existing debts, such as student or car loans, also raise your debt-to-income ratio and shrink how much you can borrow, so paying those down before applying is worthwhile.

A few nuances

A fixed retirement income can be scrutinized more closely, because a pensioner has fewer ways to increase earnings if circumstances change, so the debt-to-income math is stricter. Adding a co-signer or applying jointly can help when one income alone falls short, since a second person's income and credit are then considered. And for homeowners aged 62 and older who want to tap equity without monthly payments, a reverse mortgage is a distinct, specialized product with its own rules.

The bottom line

Age is not a barrier the law allows lenders to use, so treat it as a non-issue and focus on the things that actually decide approval. If you are younger, build credit and save toward a down payment. If you are older, gather clear documentation of your retirement income and ask lenders about asset-based options. A mortgage lender or a HUD-approved housing counselor can tell you exactly what income and assets they will accept. This article is informational and general in nature, not financial advice; consult a lender or housing counselor about your own situation.