Werkvertrag or Dienstvertrag? Choosing the Right Contract for Outside Developers in Germany

#software development contract germany

Founder & Lead Developer

Expert in software development and legacy code optimization

LinkedIn

When a German company brings in outside developers, somebody eventually asks which contract type the work should run under. Most managers sign whatever the provider sends, and that is usually where the trouble starts. A software development contract in Germany almost always falls into one of two categories in the civil code: a Werkvertrag, where you pay for a result, or a Dienstvertrag, where you pay for effort. The two look similar on paper. They shift risk in opposite directions, and the difference only becomes visible when a project goes sideways.

This post explains both types for people who have to make the decision rather than draft the clauses. It also covers a third risk that catches companies off guard: accidental Arbeitnehmerüberlassung, the German term for leasing workers. One clear note before we start: we are software engineers, not lawyers. This is an orientation for managers, not legal advice, and any contract with real money behind it deserves a review by a lawyer who works in IT law.

The short version

Under a Werkvertrag (section 631 BGB), the provider owes you a working result. You accept it formally, a step called Abnahme, and only then is the full price due. If the result has defects, you have warranty claims. The provider carries the risk that the job takes longer than planned.

Under a Dienstvertrag (section 611 BGB), the provider owes you competent work for the agreed time. There is no Abnahme and no warranty on the outcome. If the hours are spent carefully and the feature still is not what you hoped for, the hours are still billable. You carry the risk that the result disappoints.

Neither type is better in general. Each fits a different kind of work, and picking the wrong one tends to produce either endless acceptance disputes or a budget with no ceiling.

Werkvertrag: paying for a defined result

A Werkvertrag makes sense when you can describe the result precisely before work starts. A data import tool with a known file format, a migration of a specific module to a new framework version, or an integration with a documented API are good examples. The provider quotes a price, builds the thing, and you test it against the agreed criteria.

The Abnahme is the most important moment in this contract. With it, you confirm that the work matches the agreement in substance. From then on, the burden of proving a defect generally sits with you, and the warranty period begins to run. Before you sign the acceptance, test with your real data and your real workflows. The demo the provider prepared is a starting point, nothing more.

The catch is the specification. Software requirements change while the work is underway, because people learn things once they see the first version. Each change under a Werkvertrag becomes a negotiation about whether it is inside or outside the original scope. Providers know this, so a serious fixed quote includes a risk markup. If the specification is thin, that markup is large, or the provider underprices the job and tries to recover the money through change requests later. We look at that trade-off in more detail in our comparison of fixed-price, time-and-materials and retainer models.

For new builds, a Werkvertrag works best when the project is cut into milestones, each with its own acceptance criteria. That keeps the specification small enough to be honest at every stage. It also gives you a natural exit point if the collaboration is not working.

Dienstvertrag: paying for skilled effort

A Dienstvertrag fits work where nobody can define the result in advance. Maintenance is the classic case. In a given month you might need a security patch, two bug fixes, a code review and an afternoon of architecture discussion. Writing that as a deliverable makes little sense.

The usual form is an hour contingent: a fixed number of hours per month, billed against a timesheet, with rules on what happens to unused hours. We wrote about how to set one up in our post on the monthly hour budget for software development.

The provider still owes you professional work under a Dienstvertrag. Sloppy code, missed security updates or ignored instructions are a breach of the contract. What the provider does not owe you is a guaranteed outcome. That puts more responsibility on your side. You need some way to judge whether the hours are well spent, for example regular short reports, access to the repository and a person on your side who reads the pull requests or has someone do it for them.

A Dienstvertrag is also easier to end. Depending on how the contract is set up, notice periods can be short, which is useful when you are not yet sure the collaboration will last.

Choosing a software development contract in Germany for three common situations

Most outside development work falls into one of three patterns. Here is how the contract types usually map onto them.

A fixed-scope build, for example a customer portal with a clear feature list, leans toward a Werkvertrag with milestones. Expect the provider to ask for a detailed specification or a paid discovery phase first. That request is a good sign. A provider who quotes a fixed price for a vague brief is either padding heavily or planning to argue about scope later. If you want custom software development on a fixed budget, put the effort into the specification and the acceptance criteria, because most later disputes trace back to them.

Ongoing maintenance and smaller improvements to an existing system fit a Dienstvertrag with an hour contingent. Some companies add Werkvertrag elements for clearly separable jobs, for example a defined PHP version upgrade inside a larger legacy code optimization engagement. That hybrid works, as long as the contract states which parts are owed as results and which are owed as effort.

Interim work, such as a temporary technical lead or an external architect who joins your team for six months, is nearly always a Dienstvertrag. Nobody can promise a result like "the team makes good decisions." This is also the setup where the third risk shows up most often.

The risk nobody names: accidental Arbeitnehmerüberlassung

German law separates contracting for work from leasing workers. When a provider sends a developer who then works under your instructions like one of your own employees, the arrangement can count as Arbeitnehmerüberlassung under the AÜG, regardless of what the contract is called.

Leasing workers requires a permit from the Federal Employment Agency, and the contract has to be labeled as Arbeitnehmerüberlassung explicitly. A contract that is labeled as a Werkvertrag or Dienstvertrag but lived as worker leasing is a problem even if the provider happens to hold a permit. The possible consequences include fines and, in the worst case, the law treating the developer as employed by your company.

In practice, the warning signs are easy to spot. Your project manager assigns individual tickets to the external developer every morning. The developer has a company email address, appears in your org chart and requests vacation from your team lead. Nobody on the provider's side directs or coordinates the work at all. The more of this applies, the closer the setup comes to worker leasing.

The safer pattern is to direct the work through the provider. You agree on goals and priorities with them, and they organize how their people deliver. Communication in a shared Slack channel and joint planning meetings are normal and fine. What matters is who gives day-to-day instructions about how and when the work gets done.

For solo freelancers, the related risk is Scheinselbstständigkeit, false self-employment, which follows its own criteria. We covered it in a separate post on hiring freelance developers in Germany.

Clauses worth checking, whichever type you sign

Some points matter under both contract types, and they are often missing from standard provider templates.

Usage rights come first. The contract should state that you receive the rights to use, change and pass on the code, and when those rights transfer. Without that, you can end up paying for software you cannot legally hand to another provider.

Next is the handover of source code and documentation. Agree that the code lives in a repository you own, or at least that you get full access at any time, and that deployment knowledge is written down. If the provider disappears, you should be able to continue without reverse engineering your own system.

A change process belongs in every contract, written as a short procedure for how changes are requested, estimated and approved. Under a Werkvertrag this protects the fixed price. Under a Dienstvertrag it keeps the hours pointed at what you actually need.

Finally, look at termination and transition. A notice period alone is not enough. The contract should say what the provider must deliver at the end, including a handover period, so the next team can take over cleanly.

The label does not decide the contract

German courts look at how a contract is actually lived, not at the title on the first page. A document called Werkvertrag that pays by the hour with no defined result will likely be treated as a Dienstvertrag. A Dienstvertrag where your staff directs the developer like an employee can turn into worker leasing. Before signing, ask a simple question: if this project goes badly, who carries the cost, and does the contract say the same thing as our daily practice?

If you are about to bring in outside developers and want a second opinion on how to structure the technical side, from the specification and acceptance criteria to a sensible maintenance setup, we are happy to help. Our code quality consulting and tech stack strategy work often starts with exactly this kind of question. Write to hello@wolf-tech.io or look around at wolf-tech.io. For the legal wording itself, we will point you to an IT lawyer.