The UK Ancestry visa currently costs £531.
In addition to this fee, you may also be required to pay the Immigration Health Surcharge which gives you access to the NHS. This is currently £624 per year, which over five years equates to £3,120.
You will need to pay fees for each dependent that you apply to bring with you.