Why does my chainsaw run roughly?
If the chainsaw fuel has been in the tank unused for months, it can pick up moisture and fail to ignite (that's why you should drain the fuel before storing the chainsaw or add gas treated with fuel stabilizer). Replace the fuel with fresh gas if it's old and not treated with stabilizer. You might also need to replace the fuel filter at the same time.
Doing preventive maintenance including a tune-up also helps the engine run smoothly. Check the fuel lines for cracks and replace them if necessary. If you still have problems after checking those issues, consider replacing or rebuilding the carburetor.
These repairs may help solve your gas-chainsaw problem

Rebuild the chainsaw carburetor
Rebuild kits are available for most carburetors. The kit contains essential components for rebuilding a carburetor, such as diaphragms, seals and gaskets. You can sometimes fix a fuel supply problem by dismantling and cleaning a carburetor. Use the kit to rebuild the carburetor after cleaning it.
Rebuild the chainsaw carburetor
How to rebuild a chainsaw carburetor
A clogged carburetor is one reason a chainsaw won't start. This repair guide gives step-by-step inst…
Repair time and Difficulty

Replace the chainsaw carburetor
The carburetor mixes air and gasoline in the proper proportions to create a combustible gas. If the engine starts and then sputters, or doesn't start at all due to lack of fuel, you might need to replace carburetor. It's often more cost effective and practical to replace the carburetor rather than rebuild it.
Chainsaw carburetor
How to replace a chainsaw carburetor
If your chainsaw struggles to start or won't start at all, the carburetor could be clogged or its ga…
Repair time and Difficulty

Replace the chainsaw fuel lines
Fuel lines become brittle over time and can crack or tear. Replace a fuel line that's brittle or damaged. Be careful to install new fuel lines on the engine the same way the original fuel lines were configured.
Chainsaw fuel lines
How to replace chainsaw fuel lines
If your chainsaw doesn't start even though it has plenty of gas, the engine might not be getting fue…
Repair time and Difficulty

Do chainsaw preventive maintenance
Proper maintenance ensures that a chainsaw runs smoothly and works properly. Refer to your owner's manual for guidance in maintaining the chain saw. Replace parts such as the air filter, fuel filter and spark plug.