# Calculating gain percentage for 24h, 7d, 30d, 3m, and so on

When we see gain percentage numbers like: +7.01% (24h), -0.43% (7d), +31.33% (30d), and so on, how are they usually calculated? For example for the 7d period, is it calculated using:

``````([average price for today] - [average price 7 days ago])/[average price for 7 days ago]
``````
• Probably that formula, but today's closing price and the old date's opening price. Dec 14 '17 at 7:43
• But after reading this link, they might use geometric mean instead. Try, and tell us what you found!! :) Dec 14 '17 at 7:50
• Geometric mean makes more sense if we are averaging growth rates. If we are averaging price, then arithmetic price makes more sense. Dec 14 '17 at 8:39

If by "average" you mean time-average, then no. That stuff is not correct. The formula in each case is exactly the same

% Gain = (Price at the end)/(Price at the beginning) - 1

If these are gains as of now, then "price at the end" is the current price and "price at the beginning" is the price at the beginning of the period (either 24 hours ago, or 7 days ago, or whatever). Any dividends paid out will complicate the computation as there are a few ways people might treat these.

The concept of "average" can arise if we are talking about the gains on a portfolio instead of on an individual asset. In that case the gains can be computed asset-by-asset and then a weighted average computed using the portfolio weights at the beginning as weights.

Your question has no info about your situation, so let me know if you require more detail or if this is some kind of special case.

• I'm specifically referring to the gain numbers shown on cryptocurrency exchanges. If what you're saying is true, then 3mo or 1y gain will be as volatile as a 1h gain. One would (at least I would) expect that for 3mo or 1y period, the gain is "averaged" somehow. Dec 20 '17 at 6:02
• Can you please provide a link to an exchange providing gain numbers that do not conform to the standard gain calculations I have illustrated? It may be that they are annualizing gains or simply doing nonstandard calculations. Dec 20 '17 at 14:56
• That simplified formula really made my day. I always tried and kept on forgetting the other convoluted formula of [ NewValue - OldValue ] / and that's the part I kept forgetting OldValue. I just never remembered if you had to divide by OldValue or NewValue. But now it's not an issue anymore :) Feb 10 '18 at 17:54
{"ft_lang_label":"__label__en","ft_lang_prob":0.9423768,"math_prob":0.9423138,"size":878,"snap":"2021-43-2021-49","text_gpt3_token_len":199,"char_repetition_ratio":0.1430206,"word_repetition_ratio":0.0,"special_character_ratio":0.22779043,"punctuation_ratio":0.06779661,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9898581,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-20T10:12:11Z\",\"WARC-Record-ID\":\"<urn:uuid:4be86e1a-0ac1-4d8f-8b32-c3adbde795b5>\",\"Content-Length\":\"167525\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:62e08336-fda2-4449-baf0-7dad507f75a2>\",\"WARC-Concurrent-To\":\"<urn:uuid:4f3e481a-75c4-4457-adb2-0a70cdaf4df4>\",\"WARC-IP-Address\":\"151.101.193.69\",\"WARC-Target-URI\":\"https://money.stackexchange.com/questions/88238/calculating-gain-percentage-for-24h-7d-30d-3m-and-so-on?noredirect=1\",\"WARC-Payload-Digest\":\"sha1:JAFU6JLZHPPACXO6RDDM327JBDB6LX56\",\"WARC-Block-Digest\":\"sha1:ZMNICT2JQYO4L2B6IK3QH27QSXIHDV4G\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323585305.53_warc_CC-MAIN-20211020090145-20211020120145-00470.warc.gz\"}"}