The settlement is almost as much as the £45m Government grant given to Nissan this year and last to secure the future of its factory in Sunderland.
The Inland Revenue, which had threatened court action, is still investigating rival carmaker Honda on suspicion that its profits in the UK are too low because it undercharges its foreign subsidiaries for British-made cars.
Honda was hit by a similar investigation this summer by the Japanese tax authorities, who accused it of shifting Y25.4bn (£129m) of profits from motorcycles to its Brazilian subsidiary. Japanese tax officials have demanded an extra Y13bn of tax, which Honda said was 'totally unacceptable'.
Under its deal with the Revenue, Nissan's UK sales subsidiary surrendered £20m of tax losses, which would usually be set off against future profits, while the factory handed over £12.5m of tax losses and £4.5m in other payments.