﻿---
title: Costs of ES|QL Data Federation
description: Understand the costs of querying external data with ES|QL Data Federation, from your storage provider and from Elastic.
url: https://docs-v3-preview.elastic.dev/elastic/elasticsearch/tree/main/reference/query-languages/esql/esql-data-federation-costs
products:
  - Elasticsearch
applies_to:
  - Elastic Cloud Serverless: Unavailable
  - Elastic Stack: Planned
---

# Costs of ES|QL Data Federation
ES|QL Data Federation queries data where it lives instead of copying it into Elasticsearch. Running these queries can incur costs from two places: your storage provider and Elastic.

## Storage provider costs

Your storage provider bills for the requests and data transfer that each query generates. These charges apply whether you run queries through the API or in Kibana, and on every deployment type.
To understand, estimate, and reduce these charges, refer to the page for your storage provider:
- [Amazon S3 costs for ES|QL Data Federation](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/tree/main/reference/query-languages/esql/esql-data-federation-costs-s3)


## Elastic costs

Elastic doesn't charge separately for Data Federation queries during the technical preview.
On Elastic Cloud Hosted, federated queries use your deployment's capacity and data transfer like any other query. For details, refer to [Cloud Hosted deployment billing dimensions](https://docs-v3-preview.elastic.dev/elastic/docs-content/tree/main/deploy-manage/cloud-organization/billing/cloud-hosted-deployment-billing-dimensions).