Someone wants the C tool you built, or the firmware you wrote for a small board, and now you have to name a number. Pricing C work goes wrong in two directions: charging for the code as if it were a product, or charging for your hours as if the buyer were hiring a body. Before you open a spreadsheet, decide what the buyer is actually getting — a compiled tool, the source, the right to redistribute it, or your attention when it breaks.
Name the thing being sold
“Selling a C program” covers four separate products, and each carries a different price logic. The compiled binary is a delivery. The source code is an asset. A licence to use it in the buyer’s product is a permission. Support and updates are a service. Most disagreements about price are really disagreements about which of these was on the table.
Say all four out loud in the first conversation. A buyer who assumed source was included and a seller who assumed it was not will otherwise discover the gap after the work is finished, when both have lost leverage.
Three pricing shapes and when each fits
- Fixed scope, fixed fee. Best when the deliverable is small and testable, such as a converter, a parser, or a small command-line utility. You carry the risk of overruns, so define acceptance criteria precisely.
- Hourly or daily rate. Best for investigation, porting, or debugging work where nobody can honestly predict the size. Track time from the first hour and share a summary with the buyer.
- Licence plus support. Best when the code will live inside the buyer’s product for years. Charge for the right to use it, then a separate recurring arrangement for fixes and updates.
Pick one shape per deal. Mixing all three in a single agreement is how small projects become disputes.
Make the offer legible on one page
Write down scope, deliverables, acceptance criteria, timeline, payment schedule, and what happens if requirements change. Keep it to one page and plain language. For C work, add three clauses that matter specifically: which platform and compiler you will support, whether the buyer receives source, and who owns the code you wrote before the contract.
Reusable pieces are the common trap. If you are delivering a library you also use elsewhere, state that you retain the right to reuse it, and grant the buyer a licence instead of an exclusive transfer.
Where this work actually gets sold
Most first sales come from people who already saw the program work: a colleague with a data-cleaning problem, a small hardware shop that needs firmware, a research group that needs a fast utility. Freelance marketplaces can fill gaps, but a buyer who has watched your code run needs much less convincing than a stranger reading a listing.
Whatever the channel, send a working demo before the price. A five-minute build and a sample output do more selling than any description.
Guard the edges of the deal
Take a deposit before starting, deliver in stages so payment and progress stay aligned, and keep the repository until the final payment clears. Do not promise performance you have not measured, and do not promise support hours you have not budgeted. If the deal involves a company’s product, ask them to have their own adviser review the agreement — that is not your call to make for them.