Hello and welcome to JustAnswer. I am here to help you. I am reviewing your question and will respond to you shortly.
Thank you for your question.
Reinvesting proceeds from sale of shares into a personal pension plan would only reduce your capital gains tax payable if your total taxable income including the gains made remain within the threshold for basic rate of income tax.
Using these funds to make pension contributions as shown in your first example is workable as it reduces earned income (self-employed profit is earned income) and therefore income tax payable.
Pension contribution is based on your earnings for the tax year and is capped at £40,000.
More information on this can be found here
I hope this is helpful and answers your question.
If you have any other questions, please ask me before you rate my service – I’ll be happy to respond.
This you for your reply.
The relief is against earned income and not where the funds are coming from. You have profits to support the relief for pension contributions. This is completely allowable under HMRC rules.
Just checking if you have any more questions or need further clarification.
I thank you for accepting my answer.