> For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

# Data Federation Costs

You incur Atlas Data Federation costs for the following items:

- Data processed by federated database instances

- Data returned by federated database instances

## Total Data Processed

Atlas charges for the total number of bytes that Atlas Data Federation processes from your underlying sources, rounded up to the nearest megabyte. Atlas charges $5.00 per TB of processed data, with a 10 MB minimum processed data per query.

You incur "Data Processed" costs for the amount of data that Atlas Data Federation processes to return results for your queries in addition to the "Data Returned" cost for the amount of data that Atlas Data Federation returns. For example, for a 10 GB file, you incur the following "Data Processed" cost in addition to the "Data Returned" cost:

- If you have no partitions or if Atlas Data Federation needs to read the entire file to return results for the query, you incur 10 GB of "Data Processed" cost.

- If you have 10 partitions of 1 GB each, Atlas Data Federation targets and reads a single partition. Therefore, you incur 1 GB of "Data Processed" cost.

You can use partitioning strategies and compression in AWS (Amazon Web Services) S3 (Simple Storage Service) to reduce the amount of processed data. You can also configure [query limits](https://www.mongodb.com/docs/atlas/data-federation/query/manage-query-limits.md#std-label-adf-manage-query-limits) to limit the amount of data that Atlas Data Federation processes for your federated database instances and control costs.

**Note:**

Data partitioning doesn't guarantee reduced data processing cost. For example, if you run a blank [`$match`](https://www.mongodb.com/docs/manual/reference/operator/aggregation/match.md#mongodb-pipeline-pipe.-match) query, which queries all the data, Atlas Data Federation needs to read the entire collection to return the results for the query regardless of the number of partitions.

## Total Data Returned and Transferred

Atlas charges for the total number of bytes returned and transferred by your federated database instance. This total is the sum of all the following data transfers:

- The number of bytes returned to the client while reading query results

- The number of bytes transferred between Data Federation query nodes while executing a query

- The number of bytes written by Data Federation during [$out](https://www.mongodb.com/docs/atlas/data-federation/supported-unsupported/pipeline/out.md#std-label-adf-out-stage) or [$merge](https://www.mongodb.com/docs/atlas/data-federation/supported-unsupported/pipeline/merge.md#std-label-adf-merge-stage) operations

The cost of data transfer depends on the Cloud Service Provider charges for same-region, region-to-region, or region-to-Internet data transfer. AWS (Amazon Web Services) charges $0.01 per GB for the number of bytes returned and transferred within the same AWS (Amazon Web Services) region and for the number of bytes returned to the client.

See also:

- [Atlas pricing page](https://www.mongodb.com/cloud/atlas/pricing)

- [Atlas Data Federation](https://www.mongodb.com/docs/atlas/data-federation.md#std-label-atlas-data-federation)
