Hi,
If you gains, minus losses in the tax year, keeps you below the annual exempt allowance for that year, then there is no requirement to declare the gains or the losses.
Tax when you sell shares
Any losses that you wish to carry forward to a future tax year must either be declared in a Self Assessment Tax Return, where a tax return is required or in writing. In both situations, supporting evidence of the gains and losses should be included.
Thank you.