Your partner will not automatically receive half of your pension if you divorce.
Although pensions are usually included as part of the assets to be considered, they are not always split equally. The court will look at your individual circumstances to decide what is fair. For your solicitor to advise you as to the fair outcome in respect of pension entitlements there will need to be an actuary report.
This can include factors such as the length of your marriage, your ages and health, your incomes and future earning potential, your respective pension savings, and any contributions to the family, including childcare or time spent out of work.
In some cases, a pension may be shared to balance a significant difference between what each person has. In others, one person may keep their pension while the other receives a larger share of other assets, such as property or savings.
Ultimately, the aim is to reach a fair outcome, not necessarily a 50:50 split.

