Luckily the Patent Box regime applies to UK companies (not sole traders etc.) which meet the following criteria:

menu