The limit on SEP IRA is 25%, not 20%. If you're self-employed (filing on Schedule C), then it's taken on net earning, which in your example would be 25% of $90,000.
(https://www.irs.gov/retirement-plans/retirement-plans-for-self-employed-people)
JoeTaxpayer is correct as regards the 401(k) limits. The elective deferrals are per person - That's a cap in sum across multiple plans and across both traditional and Roth if you have those. In general, it's actually across other retirement plan types too - See below.
If you're self-employed and set-up a 401(k) for your own business, the elective deferral is still aggregated with any other 401(k) plans in which you participate that year, but you can still make the employer contribution on your own plan.
This IRS page is current a pretty good one on this topic: https://www.irs.gov/retirement-plans/one-participant-401k-plans
Key quotes that are relevant:
The business owner wears two hats in a 401(k) plan: employee and employer. Contributions can be made to the plan in both capacities. The owner can contribute both:
•Elective deferrals up to 100% of compensation (“earned income” in the case of a self-employed individual) up to the annual contribution limit:
◦$18,000 in 2015 and 2016, or $24,000 in 2015 and 2016 if age 50 or over; plus
•Employer nonelective contributions up to:
◦25% of compensation as defined by the plan, or
◦for self-employed individuals, see discussion below
It continues with this example:
The amount you can defer (including pre-tax and Roth contributions) to all your plans (not including 457(b) plans) is $18,000 in 2015 and 2016. Although a plan's terms may place lower limits on contributions, the total amount allowed under the tax law doesn’t depend on how many plans you belong to or who sponsors those plans.
EXAMPLE
Ben, age 51, earned $50,000 in W-2 wages from his S Corporation in 2015. He deferred $18,000 in regular elective deferrals plus $6,000 in catch-up contributions to the 401(k) plan. His business contributed 25% of his compensation to the plan, $12,500. Total contributions to the plan for 2015 were $36,500. This is the maximum that can be contributed to the plan for Ben for 2015.
A business owner who is also employed by a second company and participating in its 401(k) plan should bear in mind that his limits on elective deferrals are by person, not by plan. He must consider the limit for all elective deferrals he makes during a year.
Notice in the example that Ben contributed more that than his elective limit in total (his was $24,000 in the example because he was old enough for the $6,000 catch-up in addition to the $18,000 that applies to everyone else). He did this by declaring an employer contribution of $12,500, which was limited by his compensation but not by any of his elective contributions.
Beyond the 401(k), keep in mind that elective contributions are capped across different types of retirement plans as well, so if you have a SEP IRA and a solo 401(k), your total contributions across those plans are also capped. That's also mentioned in the example.
Now to the extent that you're considering different types of plans, that's a whole question in itself - One that might be worth consulting a dedicated tax advisor. A few things to consider (not extensive list):
- The 401(k) will allow you to contribute a larger amount of money at some income levels but not at others.
- The SEP IRA is easier to set-up and easier to close
- There are some requirements when creating a 401(k) plan that you intend for it to be a "permanent" plan. You should check those to make sure you're setting up a plan that you want. (Of course it's not absolutely permanent - but there are rules about the circumstances under which you can close it that do not apply to other types of plans.)
As for payroll / self-employment tax: Looks like you will end up paying Medicare, including the new "Additional Medicare" tax that came with the ACA, but not SS:
If you have wages, as well as self-employment
earnings, the tax on your wages is paid first.
But this rule only applies if your total earnings
are more than $118,500. For example, if you
will have $30,000 in wages and $40,000 in selfemployment
income in 2016, you will pay the
appropriate Social Security taxes on both your
wages and business earnings. In 2016, however,
if your wages are $78,000, and you have $40,700
in net earnings from a business, you don’t pay
dual Social Security taxes on earnings more
than $118,500. Your employer will withhold
7.65 percent in Social Security and Medicare
taxes on your $78,000 in earnings. You must
pay 15.3 percent in Social Security and Medicare
taxes on your first $40,500 in self-employment
earnings and 2.9 percent in Medicare tax on the
remaining $200 in net earnings.
https://www.ssa.gov/pubs/EN-05-10022.pdf
Other good IRS resources: