Buying a home in Norway: what it really costs

Can foreigners buy?
Yes. Anyone with the funds can buy property in Norway, and a built plot of up to 2 decares normally needs no concession (konsesjon) or self-declaration; owning property gives no right to live there.
Costs on top of the price
2.5-3% · Document duty (dokumentavgift) of 2.5% of market value, a registration fee (tinglysingsgebyr) of NOK 545 for the deed and NOK 545 for any mortgage document; a flat in a housing cooperative (borettslag) has no document duty; the seller normally pays the agent.
Yearly property tax
Some municipalities charge property tax (eiendomsskatt), at most 4 per mille of the value after a reduction of at least 30%, and some also give a basic deduction; many charge nothing.
Tax on rental income
Rental profit is normally taxed at 22%, and the Tax Administration says its rental rules also apply to owners who are tax resident abroad.

Sources

How to buy a home in Norway, step by step

Not legal or tax advice. Check with a local lawyer before you buy.