To my knowledge, under IFRS you cannot put IP on your own balance sheet. If you're bought by another company, it goes on the balance sheet as "goodwill" which is the difference between the price paid and the book value of net assets.
R&D spend is pure cost to the business. There might be tax advantages to doing it (UK has some addital tax benefits), but broadly just hits the income statement.
I'm pretty sure that USGAAP has similar rules, however, I would apply a health warning to what I've said.
source code or patents are actual hard assets regardless of whatever rules were made up. it is typical for bankers or acountants to dismiss the assets engineers create. imagine engineers did the same and reason that bonds are worthless because it is just paper or that your client base is worth nothing?
if you do not put IP on your balance sheet and keep expensing it eventually you end up with negative net worth which makes your business look very unattractive and unhealthy. been there done that. if you incurr expenses and in return create an asset it should be on the balance sheet. i cannot imagine diamond mining operations not putting the diamonds on the balance sheet….
R&D is expensed.
https://www.iasplus.com/en/standards/ias/ias38
> Initial recognition: research and development costs
> Charge all research cost to expense. [IAS 38.54] Development costs are capitalised only after technical and commercial feasibility of the asset for sale or use have been established. This means that the entity must intend and be able to complete the intangible asset and either use it or sell it and be able to demonstrate how the asset will generate future economic benefits. [IAS 38.57]
Edit: added link to IFRS intangible assets
The other way is capitalising expenses associated with developing IP, which I'm assuming since your on HN is software. It's been a while since I was in this space, but you can often capitalise software development expenses under certain conditions. I found this link which outlines this in more detail: https://www.accountingtools.com/articles/capitalization-of-s...