Is there documentation for the calculation of transaction fees with examples and real parameter values somewhere ? Maybe something similar to the one on the minimum Ada value here: https://docs.cardano.org/native-tokens/minimum-ada-value-requirement

1 Answer 1


Calculation procedure is here: Cardano fee structure

The formula for calculating minimal fees for a transaction (tx) is a * size(tx) + b, where:

  • a/b are protocol parameters
  • size(tx) is the transaction size in bytes

Where protocol parameters are (as of November 11, 2021):

  • a: txFeePerByte = 44 lovelace
  • b: txFeeFixed = 155381 lovelace

You can find those parameters using:

  • cardano-cli query protocol-parameters --testnet-magic 1097911063 --out-file protocol-params.json
  • Protocol params
  • I meant documentation on the calculation itself. How are the fees determined. Is there a fixed part and a variable part ?; How high is the fixed part ?; Does the variable part depend on the byte-size of the transaction ?; How high are the costs per byte ?; How large (in bytes) as a transaction with some plain vanilla UTxOs ?; How large is a UTxO with some native assets ? ... and so on.
    – Jey
    Nov 9, 2021 at 18:02
  • Check the updated answer.
    – georgeos
    Nov 9, 2021 at 18:31
  • 1
    Thank you, this is helpful. Can I suggest you add the values of txFeePerByte and txFeeFixed at the time of writing to your response. I think, I can then accept it as the answer.
    – Jey
    Nov 10, 2021 at 23:08
  • Done, glad to help!
    – georgeos
    Nov 11, 2021 at 0:16
  • But.. we can only know the size once that we said the outputs right? ... so how can I calculate the real fee incluiding the output to wich i am going to be sending the change if i dont know the fee yet? I ask because calculating the fee with cardanoserialization lib TxBuilder.add_change_is needed() is taking too long to run in the browser and i wanted to calculate manually the fees Nov 11, 2021 at 6:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.