What makes an expense allowable?
The phrase is wholly and exclusively. A cost passes if it was incurred for the purposes of the trade and nothing else. Stock, materials, tools, business insurance, professional fees, advertising, business travel and the software you run the business on all pass without argument.
Where a cost is genuinely shared — a phone, a car, a room at home — you claim the business proportion, and keep a note of how you worked it out. HMRC expects a reasonable method applied consistently, not a stopwatch.
What fails the test is anything with a private purpose: ordinary clothes, client entertaining, fines, your own drawings or salary as a sole trader, and the commute to a regular place of work. These are not grey areas; they are simply not allowable.