Skip to content

Field notes

When two sources record the same thing in Apple Health

Two devices can log the same steps. Health shows one total, but other readers of the data may add both. What to note in your log.

datareferenceorganization
The Optimized Team· ProductUpdated Nov 5, 2026

When two sources record the same thing in Apple Health, Health keeps both records. It then shows you one number, chosen by a source priority order that you can change. That is why a daily total in the Health app can differ from a total an app computes by adding up every record it can read.

If you keep a log you want to audit months later, this matters. Every value on your timeline came from somewhere, and the source can change without you noticing. Your record-keeping has to allow for that.

How Health decides which source wins#

Health doesn't delete or merge the underlying records. It ranks the sources that supply a given data type and shows data from the highest-ranked one.

The default order#

Apple's support page lists the default priority, from highest to lowest:

  1. Health data that you enter manually.
  2. Data from your iPhone, iPad, and Apple Watch.
  3. Data from apps and Bluetooth devices.

So a step count you type in by hand outranks the same day's count from your watch, and the watch outranks a third-party app.

What changes the order#

Three things can shift which source you are looking at:

| Situation | What Health does | What to note in your log | | - | - | - | | You add a new app or device | Places it above all existing apps and devices that contribute data | The date you connected it | | You reorder sources | Uses your order for that data type | The date and the new order | | You turn off a third-party source | Stops taking data from it for that category | The date, and that the source is off |

Apple states that a newly added source appears above all apps and devices that contribute data in Health. You can touch and hold the Change Order button next to a source and drag it up or down. To turn off a third-party source, you tap the checkmark next to it. The takeaway is simple. Connecting a new app can quietly change the source behind a number you've been tracking for months.

Summed raw records versus merged totals#

Health's total is a merged figure. A program that reads individual records and adds them up is doing something different.

An Apple engineer explained the difference on the Apple Developer Forums. If an app asks for data with a statistics collection query, HealthKit does the appropriate merging, which is what Health does when you look at the data in that app. If an app uses a plain sample query, it has to choose between overlapping samples itself. The same reply says it is unlikely that an app will match HealthKit's merge algorithm correctly, and that this holds for all quantity types.

Two consequences follow for a log:

  • A total from one app may not match the Health app, even when both read the same data. The difference may be a merge, not an error.
  • Cumulative types, such as steps, are where overlap shows up most. A point reading, such as a single weight, has nothing to add up, so the question there is which source supplied it.

We could not find Apple documentation that spells out the merge algorithm, so consider the exact rules unknown. If a number looks off, compare it to the Health app first, then check the sources behind it.

What an app can and cannot control#

Apps that write to Health can avoid creating copies of their own records. In a WWDC 2020 session, Apple explains that when a sample has a sync identifier, HealthKit ensures duplicate copies of that sample are not saved. A version number tells HealthKit when the sample has been updated.

That solves one problem: the same app saving the same record twice. It doesn't reconcile two different sources that measured the same hour of walking. Those are separate records from separate writers, and both stay in the store.

Reading is the other side. The session also notes that an app cannot delete data it did not save itself. So an app that reads your Health data cannot clean up a second source for you. Whatever it shows has to come with the source it came from.

For more on what a reading app gets back, see what an app gets back from HealthKit.

Reading a mixed-source export#

An Apple Health export is the place where overlap becomes visible. The export includes every stored record, including data from third-party apps that have permission to write to Health. It arrives as a ZIP with an export.xml file, which needs converting before a spreadsheet can open it.

That means an export is not the same as the totals on your Health screen. If you sum a column of step records from a file that holds both a watch and a phone, you may be counting the same walk twice. Before you trust any sum, filter to one source, or compare the result to what the Health app shows for the same day.

Our guide to what an Apple Health export file contains goes through the file itself.

What your log should note about the source#

You can't always stop two sources from recording the same thing. You can make the log honest about it, and a few habits are enough:

  • Write down the source behind each metric you rely on, such as "steps: Apple Watch".
  • Record the date whenever you add a device or app that writes the same data type.
  • Record the date whenever you change the source order or turn a source off.
  • Where you can, keep one source per metric, so a trend line is not stitched together from two different devices.
  • When a total does not match, write that it does not match, and what you compared. Do not smooth it over.

A change of source is a break in the series. A step count that drops after you added a new app may reflect a different source, not a different week. The same caution applies to any comparison you draw from a personal log: a single number is not a trend, and a correlation is not a cause.

OptimizedTracker reads Apple Health alongside your protocol entries, so the timeline can sit next to your own notes. We covered that idea in Apple Health as a second source of truth. Whatever tool you use, the source note is yours to keep.

Share

X / Twitter