IRA and Solo 401k Contributions

All of my earned income is 1099 and I don't want to get in trouble by contributing more than I am allowed.

 

if the number is $16,000 that turbotax says my maximum contribution to a solo 401k plan, and I have contributed $6,000 already to a Roth IRA (which comes first in my retirement strategy), then that means I would only have $10,000 possible contribution to my solo 401k plan without getting into trouble?