Viessmann D4 Fault Code: Causes, Fixes & Repair Costs
What does the Viessmann D4 fault code mean?
The D4 code appears on Viessmann boilers when the burner control unit detects that the combustion fan has not come to a complete stop between heating cycles, or that there is a fault with one of the electrical plug-in connections to the fan or burner control unit. Before the boiler re-ignites, the control board runs a safety check to confirm the fan is fully at rest. If it is still spinning — or if the control board cannot get a reliable signal from the fan due to a wiring issue — the burner locks out and displays D4. The exact behaviour can vary slightly between Viessmann boiler models, but the underlying cause always relates to fan standstill detection or an electrical connection fault.
General guidance only — not a substitute for professional advice, and not certified by a Gas Safe engineer. Always have your specific appliance assessed by a qualified professional. Any gas work must be carried out by a Gas Safe registered engineer. If you smell gas or suspect carbon monoxide, leave the property and call the National Gas Emergency line on 0800 111 999.
Common causes
- Fan failing to stop after shutdown Common
The combustion fan should spin down fully once a heating cycle ends. If the fan motor is worn, the bearings are failing, or the tachometer (speed sensor) that reports fan speed to the PCB is giving incorrect readings, the boiler's control board may never receive the 'fan at rest' confirmation it needs and will lock out with D4.
- Loose or corroded plug-in wiring connections Common
Over time, vibration and heat cycles can work electrical connectors loose on the wiring harness between the fan, the burner control unit, and the PCB. A poor connection can disrupt the fan-speed signal, causing the control board to misread the fan's status and trigger D4 even when the fan itself is working correctly.
- Faulty or mismatched coding card Sometimes
Viessmann boilers use a coding card (also called a coding plug) to tell the burner control unit the boiler's specific parameters. If this card is missing, incorrectly seated, or does not match the burner control unit fitted, the burner control can enter a fault state that presents as a D4 lockout.
- Burner control unit fault Sometimes
The burner control unit manages the ignition sequence and monitors safety signals including fan standstill. If this component develops an internal fault it may incorrectly report that the fan is still running, locking out the boiler even though everything else is working normally.
- PCB failure Rare
The main printed circuit board coordinates all sensor signals across the boiler. A failing PCB can produce false fan-status readings that trigger D4. PCB failure is often associated with moisture ingress from an internal leak, age-related component degradation, or electrical surges. It is usually indicated when D4 appears alongside other unrelated fault codes, or when the boiler cycles on and off very rapidly.
How to fix it
- Reset the boiler once or twice following the manufacturer's reset procedure DIY safe
Press and hold the reset button (refer to your boiler's user guide for the exact location and duration) to clear the lockout. If D4 reappears within a short time, further resets will not resolve the underlying fault and you should move to the next step. Do not reset more than two or three times in total.
- Visually check that no external wiring has come loose at the boiler casing DIY safe
Without removing any panels or touching internal components, look at the external connections and cables visible around the boiler. If you can see an obviously disconnected external cable, note this and report it to the engineer. Do not open the boiler casing or touch internal wiring — this must only be done by a Gas Safe registered engineer.
- Call a Gas Safe registered engineer to inspect the fan and its wiring Gas Safe engineer
The engineer will open the boiler casing and check the combustion fan: confirming it spins freely, stops correctly after shutdown, and that the tachometer sensor is producing an accurate speed signal. They will also reseat or replace any loose or corroded plug-in connectors on the fan wiring harness and burner control unit connections.
- Engineer to inspect the coding card and burner control unit Gas Safe engineer
The engineer will verify that the coding card is present, correctly inserted, and correctly matched to the burner control unit. If the card or the burner control unit is faulty, the appropriate component will be replaced.
- Engineer to test the fan motor and replace if necessary Gas Safe engineer
If the fan is found to be failing — bearing noise, inconsistent spin-down, or a faulty speed sensor — the engineer will replace the fan assembly. Fan replacement on Viessmann boilers typically costs £200–£300 including parts and labour.
- Engineer to test or replace the PCB if no other cause is found Gas Safe engineer
If the fan, wiring, coding card, and burner control unit all test satisfactorily, the PCB is the likely culprit. The engineer will carry out further electrical diagnostics before condemning the board. PCB replacement on a Viessmann boiler is typically around £400–£500 including parts and labour.
Parts you may need
- Combustion fan / flue fan motor assembly · from £120
- Fan tachometer / speed sensor · from £35
- Wiring harness / plug-in connector set · from £25
- Coding card (coding plug) · from £30
- Burner control unit · from £180
- PCB (main printed circuit board) · from £280
The exact spare depends on your boiler's GC number (on the data badge). Check this against the part before buying.
Typical repair cost
Expect to pay roughly £150–£400, depending on the underlying cause.
Frequently asked questions
Can I fix a Viessmann D4 fault code myself?
No. The D4 fault involves internal electrical components — specifically the combustion fan, its wiring harness, and potentially the burner control unit or PCB. Opening the boiler casing and working on these parts without Gas Safe registration is illegal in the UK and potentially dangerous. The only safe DIY steps are attempting one or two resets and calling a Gas Safe registered engineer if the fault persists.
How much does it cost to fix a Viessmann D4 fault in the UK?
For the most common causes — a loose wiring connection or a fan motor replacement — most people pay between £150 and £400 including the engineer's call-out, labour, and parts. If the PCB needs replacing the total cost is typically around £450–£500. In rare cases where multiple components have failed simultaneously, costs can be higher; if repair costs approach the price of a new boiler your engineer should advise you on whether replacement makes more financial sense.
Why does my Viessmann boiler show D4 only when it tries to fire up again after a cycle?
D4 is triggered at the very start of each new ignition sequence, when the control board checks that the fan has fully stopped from the previous run. If the fan is slow to spin down — due to worn bearings or a faulty speed sensor — or if a wiring connection is intermittently loose, the fault may only appear at that specific moment. This is why some boilers work for a while before locking out again: the fault shows up exactly when the standstill check is performed.
Will a D4 fault clear itself, or do I need an engineer?
A single reset may temporarily clear the lockout, but if the underlying cause — a failing fan, loose connector, or faulty component — has not been fixed, D4 will return, often very quickly. The fault will not resolve itself. Repeated resets without addressing the root cause can place additional wear on the fan motor and other components, so it is best to have a Gas Safe registered engineer investigate promptly rather than relying on resets.