The IRS page on effectively connected income says foreign persons are generally engaged in a US trade or business when personal services are performed in the US. Publication 519 goes further: performing personal services in the US at any time during the tax year usually puts you in a US trade or business. Income from that work is taxed at the graduated rates, after deductions, on a Form 1040-NR.
A worked example
Say you bill US$96,000 in a year and work 240 days. You spend 12 working days at client offices in New York and Chicago. On a time basis:
The $91,200 doesn't become US income because you also visited. And the $4,800 isn't necessarily taxed in the end: many US treaties tax a foreign resident's business profits in the US only if there is a permanent establishment there. Relying on a treaty position like that usually means filing a return anyway and disclosing it on Form 8833. Whether your treaty has that article, and whether its conditions fit you, is a question for an adviser who reads your treaty. Our double tax treaty guide explains how the articles work.
The small exception that usually won't helpPublication 519 treats US work as foreign source only when all three conditions hold: the work is for a foreign person or business not engaged in a US trade or business, you're in the US no more than 90 days in the year, and the pay for it is no more than $3,000. A US client paying your LLC fails the first test. A German client sending you to its own team in Boston for a week might pass all three.
90 + $3,000Both limits, plus a foreign payer, or the exception doesn't apply. Above $3,000, Publication 519 says the whole amount is US business income.
An office, staff or an agent who signs contracts for you in the US is a different matter. Activity that is "considerable, continuous and regular" in the US, in the IRS's words, can pull far more of the business into US tax. That's the line where you want a US tax adviser before you sign a lease.