Adding my reply to another thread on this subject - this is one of the most complete discussions on CPAP battery usage that I've seen. Helpful to have everything in one place.
Sharing my experience of successfully camping with CPAP since 2010. Will walk through some key power requirements analysis and outline my DIY modular battery pack & solar system. My CPAP machines for camping include an older Goodknight 420G and newer Philips Respironics PR-150. Pressure setting of 10cm and no humidifier use when camping. Both machines operate directly on 12 volt DC current. If your machine requires AC current then you need the optional inverter noted below.
The
critical analysis required for scoping my battery packs was to determine the actual current draw for my machines at the prescribed pressure. In my case (per measurement with an amp meter during operation) the power required was just a fraction of the specifications for each machine. Actual for my 420G is only 0.6 amps versus the 1.5 amps specified on the machine.
In the case of the PR-150 actual is only 0.5 amps versus a 5.0 amp specification. The reason for this is that machine specifications are for the maximum possible current usage - 20CM of pressure in both cases and current for an optional humidifier in the case of the PR-150. Knowing that my power requirements were much more modest than expected allowed me to build a battery pack around a 20 amp hour lead-acid absorbed glass matt (agm) battery that only weighs 13 pounds. Assuming the PR-150 system 0.6 amps for eight hours only uses 4.8 amp hours of current per night allowing my battery pack to support up to 3 nights at a total 75% power drain (below the 80% recommended maximum for agm batteries). In practice, since we charge phones and power some other items with the battery we regularly camp with just one battery for up to two nights. At only $40 per battery I've built two battery packs to cover longer trips and with the solar panel we were able to camp for a full week on Assateague Island last year.
The key message is that you need to determine your specific needs - at higher pressures the larger 35 amp hour U1 batteries may be required to provide the needed current. Also, if your machine requires AC current then you will need an inverter that typically only operates with 80-85% efficiency further increasing power requirements.
My specific set up includes two modular 20 amp hour battery packs and a 30 watt solar panel as follows:
Basic Battery Pack Construction:
1)ExpertPower 12200 12 volt 20 amp hour (ah) agm batteries from Amazon (replaced 7 & 8 year old Powersonic and No-name agms last year that finally aged out) ($40 on Amazon). Note that depending on battery brand you may be able to save significantly by dropping down to an 18 amp hour battery if it meets your requirements. Just remember that maximum agm recommended cycle use is 80% of capacity or 16 out of 20 amp hours for my battery or just 14.4 amp hours from 18 ah of capacity.
2)EP Auto 10 gauge in line ATC auto fuse holder on the positive terminal of each battery with a 15 amp auto ATC fuse (protects main wiring and battery from short circuit - $10 for a pack of 10 on Amazon)
3)Permanent 12 gauge 100% copper JSC Cable auto zip wire for main battery cable (20 amp rating) attached to in-line fuse holder and negative battery terminal. About 2 feet long with Anderson powerpole connectors. (Price will vary based on brand and quantity, $10 for a pack of 10 powerpole connectors)
4) 2.1mm barrel connector cable (18 gauge) with added Anderson Powerpole connectors. Barrel connector for the CPAP machine while the powerpoles connect to the main battery cable. Also have a 5 AMP fuse on this to protect narrower gauge cable and my CPAP machines. PR-150 machine use requires a 2.1mm to 2.5mm barrel connector adaptor. (About $6 for cable and connectors).
5) The battery is in a cheap Harbor Freight Plastic Ammo box (just the bottom) with the entire system carried in a small size heavy cloth tool bag (breathable for battery - $4 for box and $10 for bag).
6) All connections are covered with electrical tape and/or heat shrink tubing to minimize the chance of a short circuit.
7) Battery charger, I currently use a 3amp 3 stage Deltran Battery Tender Power Plus available at Costco for $39 ($29 when on sale). Started with a $10 generic 1 amp charger that did what was needed - just took longer.
The above is all that is needed for operation of my CPAP and is all you need to cover 2 - 3 nights of camping based on your machines power requirements. If you only want to run your CPAP and skip the inverter and solar option (see below) you can connect the 18guage barrel connector cable (with 5 amp in-line fuse) directly to the battery (use inexpensive O-ring connectors on the battery terminals) and skip the auto zip wire (all for under $75-80 with a low cost charger).
To power other items and charge phones I've also added the following optional items (and a 2nd 20 amp hour battery pack for trips of 3 - 4 nights):

An Ampeak 400 watt inverter ($30 on Amazon - replaced a 7 year old Harbor Freight version last year). Make sure you get the newer version with user replaceable fuses. If your CPAP requires AC power, and can operate on a modified sine wave inverter, you will need this. I successfully tested an older ZZZpap unit (use at home) on this and it worked well. Occasional inverter use is why I've over spec'd the main battery cable. Supporting the inverter with up to 180 watts of power (15amp fuse) is why I've used the 12 gauge auto zip wire. Note that for a 20 amp hour battery you should not use items that require more than roughly 5 amps (60 watts) on a regular basis. If you need more wattage for non-CPAP devices consider a larger battery. Always use a fuse on step below wire capacity - in this case 15 amp fuse for wire spec'd at 20 amps.
9) Also purchased a NOCO gc018 cigarette lighter style power adapter. Replaced the ring connectors with Anderson powerpoles. Use this for an air mattress inflator. This comes with an replacable auto fuse that I downgraded to 7.5amps for greater safety. Also use this with an auto cigarette lighter socket phone charger.
The solar panel for longer camping trips includes:
10) A Newpowa NPA30-12 30 watt solar panel ($42 on Amazon)
11) Basic 5 amp waterproof solar charge controller ($14 from Amazon)
12) Mini-blade in-line fuse holder with 5 amp fuse to protect panel from a battery short circuit (on positive that connects to battery-$4)
13) 10 feet of 16 gauge wire rated for outdoor use with anderson powerpoles added to connect battery to solar panel (under $5).
The charge controller and fuse are mounted on the solar panel to make this an easy to use modular unit that quickly connects to the battery packs. In full sun at panel output is 1.75 amps - charging a 50% discharged 20 amp hour battery in under 6 hours. With this and the two battery packs we ran my CPAP and a fan that drew 0.4 amps every night in addition to charging our cell phones while at Assateague. Note that on Assateague in summer we got optimal sun of 10 -12 hours of charging possible each day. You may want a larger panel for use in areas or during seasons where there is less sunlight.
Bottom line is that with the above modular approach you can get started for under $75 and expand as needed and only bring what is required for each specific camping trip. Key is to measure your actual power usage so you can scope this to what you need. Also make sure you add adequate fusing to protect from short circuits and use the right connectors, electrical tape to ensure no bare wires or connections. Have seen too many "how-to's and videos that skip this.
Note that maintenance requirements are minimal. Off-season you should top off the battery charge every 3 months. I also run the battery through a modest 25% usage/recharge cycle after 6 months of storage. This setup also does well as a back-up in case of power failure.