There are annual limits on how much you can contribute to both a 401(k) and a Roth IRA. However, the contribution limits for a 401(k) are much higher.
In 2021, for example, you can contribute $19,500 to a 401(k) and an additional $6,500 if you are over 50 and eligible for catch-up contributions. That adds up to a $26,000 total maximum contribution.
By contrast, you are allowed to contribute a total of $6,000 to Roth and traditional IRAs in 2021 (that’s an aggregate limit applicable to both account types). And the catch-up contribution amount is a total of $1,000, so the maximum Roth IRA contribution for those 50 or over would be $7,000.