A gas tankless heater usually needs far more gas at full fire than the tank it replaces, so the gas line is checked against the unit's rated input, and the venting is built to the manufacturer's instructions.
Gas line
Many Costa Mesa homes built in the 1960s and 1970s have a gas line to the water heater sized for a tank. A tankless unit can need much more gas when it fires to full capacity. If the line, meter or regulator cannot deliver it, the unit starves, flame fails or the water goes lukewarm when two showers run. The plumber measures the pipe run from the meter, counts the other appliances on it (range, dryer, furnace, barbecue) and sizes the pipe against the input on the spec sheet. Angi says a gas line upgrade for a tankless install can run up to $1,000, and HomeAdvisor lists $272 to $936 for a gas line installation. Those are published ranges, not quotes. Call (657) 669-4766 for an exact quote.
The City of Costa Mesa water heater standard requires a full-open shutoff valve and a sediment trap on the gas supply at the heater. Gas piping work is covered in more depth on our gas line plumber page.
Venting
Tankless heaters do not use a tank's draft hood. They use a fan and a vent system the manufacturer specifies. The City standard says all flue gases must go outdoors, and vents must be listed and labeled, except single-wall metal or plastic for Category IV appliances as the manufacturer specifies. Direct-vent and mechanical-draft appliances may terminate other than above the roof when installed per the manufacturer's instructions. Penetrations must be flashed and capped, and a vent must end at least 3 feet above any forced-air inlet within 10 feet.