First, see the price of equal ownership
For comparison, joint tenancy is modelled as an equal split of net equity on separation by agreement. The alternative is a hypothetical, properly drafted tenants-in-common deed: after the mortgage and sale costs, A gets up to £60,000 of the remaining equity and B up to £20,000; any excess above £80,000 is split equally. Where equity falls short, the illustration allocates the shortfall against their deposits equally until a deposit runs out, and then against the remaining deposit. At £260,000, A receives £40,000 and B £0; at £300,000, £60,000 and £20,000; at £340,000, £80,000 and £40,000. The example is not a default rule for tenants in common. A percentage-share deed, unequal repayments, negative equity, disputes or different drafting change the outcome; a conveyancer must specify the actual waterfall.
The gap between the two models for A is £20,000 at each illustrated sale price: the £40,000 deposit difference is effectively shared between partners under the equal-split assumption. That is not a charge levied by a lender; it is the economic consequence of choosing equal beneficial ownership. The other side of this debate makes the case for preserving the deposits.