<p>Possible way to calculate the volume of <em>material used</em> is to multiply the filament length (calculated by CURA after slicing and displayed in lower right corner) and surface of filament tip.</p>

<p><strong>Volume = Filament_length * ( Filament_diameter / 2 )^2 * PI</strong></p>

<p>Of course do not forget to convert all values to the same order of magnitude (e.g. cm³).</p>

CC BY-SA 3.0
2016-07-21T13:20:31.650Z
This is the correct answer for the *volume of material used* as talked about in the comments.  Note that a traditional geometric volume of the final print would of course include the interior empty space between infill supports, not just the volume of the material used (for example, print a watertight model and dunk it in water, check the amount of water displacement).  But for material used, this is the correct formula.
emackey
CC BY-SA 3.0
2016-07-21T10:37:36.023Z
2016-07-21T10:37:36.023Z
dsalaj
<p>Is there a reasonable way of approximating the volume of material used for 3D print by knowing only the STL file volume and infill percentage?</p>

<p>Or what is the formula for calculating the exact volume and which parameters can be fixed to reasonable values?</p>

<p>Can this be done easily using <a href="http://slic3r.org/" rel="noreferrer">Slic3r</a> or <a href="https://github.com/Ultimaker/CuraEngine" rel="noreferrer">CuraEngine</a> in command line?</p>

<p><strong>Note:</strong>
Supposedly 3Dhubs use Cura[*] software to calculate the print volume.</p>

<p>Any help is appreciated.</p>

<p>[*] www.3dhubs.com/talk/thread/calculate-print-volume</p>

CC BY-SA 3.0
2016-07-20T17:32:42.980Z
`by knowing only the STL file volume` which else volume do you want?
fukanchik
CC BY-SA 3.0
2016-07-20T20:07:09.547Z
Are you sure you want the volume, or are you asking for the amount of print material required to print?  The volume does not depend on the infill percentage, but the print material usage does.
emackey
CC BY-SA 3.0
2016-07-21T06:38:20.193Z
@emackey Yes I am sure, I would like to know the volume needed independent of material type. It does depend on infill. With low infill the voids in the final print will be greater and thus the volume also. But any help is welcome. Do you know how to calculate amount of material required using CuraEngine?
dsalaj
CC BY-SA 3.0
2016-07-21T07:44:07.150Z
@dsalaj, so what you are saying is that you want to know the *volume of the material used*, and not the volume of the final print?
Tormod Haugene
CC BY-SA 3.0
2016-07-21T10:31:49.953Z
@TormodHaugene You are right. I was ignorant thinking these two are the same. Obviously the volume after melting, cooling, etc. will change. I was able to work out the volume of material used know simply by using the filament length (calculated by Cura) and filament diameter.
dsalaj
CC BY-SA 3.0
2016-07-21T10:34:31.540Z
@dsalaj, so you found your answer then? Good to hear. :) Would you mind adding what you found out as an answer to this question and accept it? That will make it much more visible and useful to other users!
Tormod Haugene
CC BY-SA 3.0
2016-07-21T10:38:59.350Z
@TormodHaugene Thank you. Yes I have. I only need to figure out how to do it from command line with CuraEngine. I will do that, thanks.
dsalaj
CC BY-SA 3.0
2016-07-21T11:50:35.350Z
Just as a small addition: Slic3r gives the amount of used filament in grams when slicing in Repetier. I find this very helpful because it my filament spool is also bought by weight. And I know the weight of the final piece.
kamuro
CC BY-SA 3.0
2016-08-06T08:39:16.107Z
Use simplify 3d. It is built in!
MakerModder
<slicing><slic3r>
How to calculate the approximate volume of material used in 3d print?
dsalaj
# How to calculate the approximate volume of material used in 3d print?

(Asked by: username_0 on 2016-07-20)

Is there a reasonable way of approximating the volume of material used for 3D print by knowing only the STL file volume and infill percentage?

Or what is the formula for calculating the exact volume and which parameters can be fixed to reasonable values?

Can this be done easily using [Slic3r](http://slic3r.org/) or [CuraEngine](https://github.com/Ultimaker/CuraEngine) in command line?

**Note:**
Supposedly 3Dhubs use Cura[\*] software to calculate the print volume.

Any help is appreciated.

[\*] www.3dhubs.com/talk/thread/calculate-print-volume

**Tags:** slicing, slic3r
> **Comments:**
> **username_1**: `by knowing only the STL file volume` which else volume do you want?  
> **username_2**: Are you sure you want the volume, or are you asking for the amount of print material required to print?  The volume does not depend on the infill percentage, but the print material usage does.  
> **username_0**: @emackey Yes I am sure, I would like to know the volume needed independent of material type. It does depend on infill. With low infill the voids in the final print will be greater and thus the volume also. But any help is welcome. Do you know how to calculate amount of material required using CuraEngine?  
> **username_3**: @dsalaj, so what you are saying is that you want to know the *volume of the material used*, and not the volume of the final print?  
> **username_0**: @TormodHaugene You are right. I was ignorant thinking these two are the same. Obviously the volume after melting, cooling, etc. will change. I was able to work out the volume of material used know simply by using the filament length (calculated by Cura) and filament diameter.  
> **username_3**: @dsalaj, so you found your answer then? Good to hear. :) Would you mind adding what you found out as an answer to this question and accept it? That will make it much more visible and useful to other users!  
> **username_0**: @TormodHaugene Thank you. Yes I have. I only need to figure out how to do it from command line with CuraEngine. I will do that, thanks.  
> **username_4**: Just as a small addition: Slic3r gives the amount of used filament in grams when slicing in Repetier. I find this very helpful because it my filament spool is also bought by weight. And I know the weight of the final piece.  
> **username_5**: Use simplify 3d. It is built in!  

---

## 1 answers

### Answer by username_0 on 2016-07-21. Score: 6

Possible way to calculate the volume of *material used* is to multiply the filament length (calculated by CURA after slicing and displayed in lower right corner) and surface of filament tip.

**Volume = Filament\_length \* ( Filament\_diameter / 2 )^2 \* PI**

Of course do not forget to convert all values to the same order of magnitude (e.g. cm³).

> **Comments:**
> **username_2**: This is the correct answer for the *volume of material used* as talked about in the comments.  Note that a traditional geometric volume of the final print would of course include the interior empty space between infill supports, not just the volume of the material used (for example, print a watertight model and dunk it in water, check the amount of water displacement).  But for material used, this is the correct formula.  

---

