The GOV.UK website offers the following guidance if you are considering a patent application.
A UK patent may help if you want to take legal action against someone who uses your invention without your permission. For example, if they sell or manufacture your product in the UK.
A patent lasts 5 years. If you want it to stay in force after that, you must renew it every year, up to a maximum of 20 years.
What you can patent
Your invention must be:
What you cannot patent
Things you cannot patent include:
Only software with a technical purpose can be granted a patent. For example, software to control a driverless car could have a patent, while a chess playing app could not. If your invention is software, you may need professional advice whether it can be patented (for example, by consulting with a patent attorney).