Catalogue No. 001GuideUpdated 2026-10-18Licensing open

How to value software and source code

Software valuation in plain words: cost to rebuild, revenue multiples, comparable sales and licensing value, and how code with no revenue is valued.

Free to join. No public listing. A real estimate in minutes once Git is connected.

Quick answer

Software is valued four ways: cost to rebuild, a multiple of revenue or earnings, comparable sales, and licensing value. Code with no revenue is valued on licensing value: source tokens at $100 per million plus history tokens at $40 per million, paid by AI labs per non-exclusive license.

Applies to code you own Currency USD Verified 2026-10-10

How do you value software and source code?

There are four standard methods. Cost to rebuild asks what it would take to write the code again. A revenue or earnings multiple prices the cash flow the software produces. Comparable sales look at what similar software sold for. Licensing value asks what someone will pay to use the code itself. Software with revenue is usually valued on the second. Code with no revenue or users is valued on the fourth, because AI labs pay to license real source code and git history to train coding models. The license is non-exclusive, so you keep ownership and are paid each time. Get a valuation to see your figure.

What are the main software valuation methods?

Each method answers a different question, and each needs different evidence.

MethodBest forNeeds revenue?
Cost to rebuildAccounting, insurance, tax, internal toolsNo
Revenue or earnings multipleSaaS and app businesses with paying customersYes
Comparable salesBusinesses similar to recent public dealsUsually
Licensing valueIdle or shelved code, private repos, code with no usersNo

Cost to rebuild

This method estimates the hours a team would need to write the software again and prices them at a market rate. Some versions use lines of code or function points to estimate effort. It is the usual basis when software sits on a balance sheet, when it is insured, or when it moves between related companies for tax purposes.

Its weakness is that it measures cost. A codebase that took three developer-years to write is not worth three developer-years to a buyer unless that buyer needs exactly that code and cannot build it more cheaply. Most buyers can, or think they can.

Revenue or earnings multiple

This is how most software businesses are priced. A buyer takes annual recurring revenue, or profit for smaller products, and multiplies it. The multiple rises with growth, low churn, high margins and low dependence on the owner. A discounted cash flow model is a more formal version of the same idea: it projects future cash and discounts it to today.

It is the right method when there is revenue to multiply. When there is none, it returns zero, which is why a pre-revenue SaaS or an app with no users is so hard to sell as a business.

Comparable sales

This method looks at what similar software or software companies sold for and adjusts for differences. It is common in acquisition work and in appraisals. In practice, comparables are usually quoted as revenue or profit multiples, so the method still leans on revenue. Private code with no product attached has few public comparables.

Licensing value

This method prices the right to use the code itself. Historically it applied to software that other companies paid to embed or run. Today it also applies to any real private codebase, because AI labs license source code and git history to train and evaluate coding models. They pay for the code and its history, whether or not the product ever earned anything.

Which valuation method should I use?

Match the method to what the software has:

  • Revenue and growth: a multiple of revenue or earnings, checked against comparable sales.
  • A balance sheet, an audit or an insurance policy: cost to rebuild.
  • A strategic buyer who needs the technology: cost to rebuild sets a floor, and comparables help.
  • No revenue, no users, or a product you have stopped running: licensing value.

The methods can sit side by side. A live SaaS can be valued on its revenue for a future sale and still license its code to AI labs today, since a non-exclusive license leaves ownership with you.

Why is code with no revenue valued on licensing value?

Because the other methods have nothing to work with. A multiple of zero is zero. Comparables for private, unreleased code barely exist. Cost to rebuild gives a number, but no one pays it. Licensing value is the one method backed by buyers paying today for code on its own merits.

AI labs pay because real production code is an input they cannot generate. Public code is already in their training data. What they lack is the private software companies and developers kept to themselves: shelved products, internal tools, dead startups and side projects. Revenue, users, design and whether the code still builds make no difference to them. Size, history depth, tests and realism do. For why labs pay at all, read sell code for AI training.

How is licensing value calculated?

By the token. A token is a short chunk of text, roughly three or four characters of code. Source code and git history are counted separately and paid at different rates:

Value per license = source tokens × $100 per million + history tokens × $40 per million

Take an illustrative repo: an invoicing platform shelved in 2024, with 0.6 million source tokens and 23.5 million history tokens. The source pays its share at the source rate. The history, nearly forty times larger, pays at the history rate and supplies most of the value. Together they come to about one typical repo’s worth, in the range of $1,000 to $1,500 per license.

That pattern holds across the licensing program, where history makes up about 79% of licensed tokens. A few years of genuine commits usually outweigh the final source many times over.

Third-party code is left out of the count. Vendored libraries, generated files and dependencies belong to someone else. Only your own code and the history of how you changed it are counted.

What makes source code more valuable?

Four things move the figure:

  1. Source tokens. How much real code there is.
  2. History depth and realism. Years of genuine commits, fixes and refactors. Squashed or generated history is worth far less.
  3. Tests. They show what the code is meant to do, and labs use them to grade models.
  4. Buyer demand. Some languages and domains are scarcer than others. Demand decides how often a repo is licensed.

By depth, a light repo earns about $400 to $700, a typical repo about $1,000 to $1,500, and a deep repo about $2,500 to $4,000 per license. A few long-lived codebases with years of production history and tests have earned tens of thousands of dollars. These are illustrative, conservative ballparks of what the owner takes home, and a repo can fall outside its band in either direction. Licenses are non-exclusive, so the same repo can be paid again.

For an interactive estimate by number of repos and depth, use the estimator on how much is my code worth. For general software and internal tools, see sell software source code.

How do I get a real valuation of my code?

Connect it. Estimates by depth are a starting point, and a real figure needs a token count of your actual repos. Request access, sign the agreement once and give read-only access to GitHub, GitLab or Bitbucket for only the repos you choose. A per-repo estimate appears within minutes, with no commitment and no upfront cost. Secrets and personal data are stripped from the review copy before any buyer sees it, and your repository is untouched.

Get a valuation to see what your code is worth.

Find out what your repos earn.

Get a valuation

Free to join. No public listing. A real estimate in minutes once Git is connected.

§ 01Questions

What else do owners ask?

Q.01What is the most common software valuation method?

For a software business with revenue, a multiple of revenue or earnings. For code with no revenue, licensing value is the method that reflects what someone will pay today.

Q.02How do you value source code with no revenue?

By its licensing value. AI labs pay per million tokens of source code and per million tokens of git history, so the value depends on how much real code and history the repo holds.

Q.03Is cost to rebuild a fair value for my code?

It is useful for accounting, insurance and tax, but it measures what the code cost to write. A buyer will rarely pay that unless they need the exact code and cannot build it themselves.

Q.04Why does git history add value?

History shows how real software was built: every change, fix and refactor. Labs pay a separate rate for it, and in most repos it holds many times more tokens than the final source.

§ 03  ClosingCatalogue No. 001Licensing open

What is your code worth?

Request access. Connect Git. See a real per-repo estimate in minutes, then decide.

Get a valuation

Free to join. Nothing upfront. You can withdraw a codebase at any time.

Get a valuation